-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
112 lines (96 loc) · 2.62 KB
/
pyproject.toml
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
103
104
105
106
107
108
109
110
111
112
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "H2O.ai", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
"Topic :: Utilities",
]
dependencies = ["httpx>=0.16"]
description = "H2O Python Clients Authentication Helpers"
license = "Apache-2.0"
name = "h2o-authn"
readme = "README.md"
requires-python = ">=3.8"
version = "2.1.0"
[project.urls]
Documentation = "https://github.com/h2oai/authn-py#readme"
Issues = "https://github.com/h2oai/authn-py/issues"
Source = "https://github.com/h2oai/authn-py"
[tool.hatch.build.targets.wheel]
packages = ["src/h2o_authn"]
[project.optional-dependencies]
discovery = ["h2o-cloud-discovery>=1.1,<3.0"]
[[tool.hatch.envs.test.matrix]]
httpx = ["httpx0.16", "httpx0.21", "httpx0.22", "httpx0.23", "httpx0.24", "httpx0.25", "httpx0.26"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.test.overrides]
matrix.httpx.dependencies = [
{value = "httpx==0.16.*", if = ["httpx0.16"]},
{value = "httpx==0.21.*", if = ["httpx0.21"]},
{value = "httpx==0.22.*", if = ["httpx0.22"]},
{value = "httpx==0.23.*", if = ["httpx0.23"]},
{value = "httpx==0.24.*", if = ["httpx0.24"]},
{value = "httpx==0.25.*", if = ["httpx0.25"]},
{value = "httpx==0.26.*", if = ["httpx0.26"]},
]
[tool.hatch.envs.test]
dependencies = [
"pytest-asyncio~=0.21",
"pytest~=7.2",
"respx>=0.16",
"time-machine~=2.10",
]
dev-mode = false
features = ["discovery"]
[tool.hatch.envs.test.scripts]
pytest = "python -m pytest {args}"
[tool.hatch.envs.devtest]
dev-mode = true
template = "test"
[tool.hatch.envs.lint]
dependencies = [
"mypy~=1.1",
"ruff==0.1.11",
]
features = ["discovery"]
[tool.hatch.envs.lint.scripts]
check = [
"ruff format --check .",
"ruff check .",
"mypy src",
]
fix = [
"ruff check --fix .",
"ruff format .",
"check",
]
[tool.hatch.envs.docs]
dependencies = [
"pydoc-markdown~=4.8",
]
[tool.hatch.envs.docs.scripts]
generate = "pydoc-markdown"
[tool.ruff]
extend-select = ["I", "B", "A", "ERA"]
line-length = 88 # Same as black.
src = ["src", "test"]
target-version = "py37"
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.ruff.isort]
case-sensitive = false
force-single-line = true
force-sort-within-sections = true
known-first-party = ["h2o_authn"]
order-by-type = false
relative-imports-order = "closest-to-furthest"
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]