-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (91 loc) · 2.56 KB
/
Copy pathpyproject.toml
File metadata and controls
102 lines (91 loc) · 2.56 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "okta-client-python"
version = "0.3.0"
description = "Okta Client SDK (Python)"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
authors = [
{ name = "Okta Developers", email = "developer@okta.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"pyjwt[crypto]>=2.6,<3",
]
[project.optional-dependencies]
test = ["pytest>=7,<9"]
dev = [
"pytest>=7,<9",
"pytest-cov>=4,<6",
"ruff>=0.4,<1",
"build>=1,<2",
"selenium>=4,<5",
"twine>=5,<6",
]
[project.urls]
Homepage = "https://github.com/okta/okta-client-python"
Documentation = "https://github.com/okta/okta-client-python#readme"
Repository = "https://github.com/okta/okta-client-python"
Issues = "https://github.com/okta/okta-client-python/issues"
Changelog = "https://github.com/okta/okta-client-python/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
okta_client = ["py.typed"]
# ---------- Ruff ----------
[tool.ruff]
target-version = "py310"
line-length = 127
src = ["src", "tests", "samples"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade (includes UP007 Optional->X|None)
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long - handled by formatter / editorconfig
"UP007", # Optional[X] -> X | None - enable when ready for bulk migration
]
[tool.ruff.lint.isort]
known-first-party = ["okta_client"]
# ---------- Pytest ----------
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: tests that require external services and secrets",
]
addopts = "--strict-markers"
# ---------- Coverage ----------
[tool.coverage.run]
source = ["okta_client"]
branch = true
[tool.coverage.report]
show_missing = true
fail_under = 60
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@overload",
]