Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 2.57 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (76 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[project]
name = "onelogin"
version = "4.0.1"
description = "OneLogin API Python SDK"
authors = [
{name = "OneLogin", email = "developers@onelogin.com"}
]
license = {text = "NoLicense"}
readme = "README.md"
keywords = ["OneLogin", "SDK", "API"]
requires-python = ">=3.10"
dependencies = [
"urllib3>=2.0.2",
"python-dateutil>=2.5.3",
"pydantic>=2.11.0",
"aenum>=3.1.11",
"setuptools>=67.7.1",
]
[project.optional-dependencies]
test = [
"pytest~=7.1.3",
"pytest-cov>=2.8.1",
"pytest-randomly>=3.12.0",
"flake8>=4.0.0",
"tox>=3.9.0",
]
lint = [
"ruff>=0.6.0",
]
[project.urls]
Repository = "https://github.com/onelogin/onelogin-python-sdk"
[build-system]
requires = ["setuptools>=67.7.1", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = {find = {exclude = ["test*", "docs*"]}}
package-dir = {"" = "."}
include-package-data = true
[tool.pytest.ini_options]
testpaths = ["test"]
python_files = "test_*.py"
[tool.flake8]
max-line-length = 99
[tool.pylint.'MESSAGES CONTROL']
extension-pkg-whitelist = "pydantic"
[tool.ruff]
line-length = 120
# Only lint the package itself for now. test/ will be added once the stub-file
# cleanup (PR #129) lands — most current test/ ruff hits live in those stubs.
include = ["onelogin/**/*.py"]
[tool.ruff.lint]
# Pyflakes (F) + pycodestyle errors (E) is the safe starter set.
select = ["E", "F"]
# Generator-era api/ files have method signatures up to ~2,800 chars on a
# single line. Line-length lint isn't worth fighting on legacy code; the
# real value here is F-rules (unused imports, undefined names) and E7xx
# (real code smells).
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
# Re-exports — `# flake8: noqa` already covers F401 here, but be explicit.
"onelogin/__init__.py" = ["F401"]
"onelogin/models/__init__.py" = ["F401"]
"onelogin/api/__init__.py" = ["F401"]
# Generator-leftover dead assignments in `oneOf` validators. Cosmetic only;
# safe to clean up in a follow-up sweep.
"onelogin/models/create_app200_response.py" = ["F841"]
"onelogin/models/create_app_request.py" = ["F841"]
"onelogin/models/create_role201_response_inner.py" = ["F841"]
"onelogin/models/get_email_settings200_response.py" = ["F841"]
"onelogin/models/list_mappings_actions200_response_inner.py" = ["F841"]
"onelogin/models/message_template_template.py" = ["F841"]
# `query_params = {}` after an early-return-style branch in the rest client.
"onelogin/rest.py" = ["F841"]
# `type(x) == str` in two places — works, but should use `isinstance`.
# Low-level deserializer, follow-up.
"onelogin/api_client.py" = ["E721"]