Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
194 lines (172 loc) · 3.98 KB
/
Copy pathpyproject.toml
File metadata and controls
194 lines (172 loc) · 3.98 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "auth-server-playground"
version = "0.1.0"
description = "Demonstration authorization server built with Authlib"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">=3.11"
keywords = ["oidc", "oauth", "oauth2", "openid", "identity", "authentication"]
maintainers = [{name="Éloi Rivard", email="eloi@yaal.coop"}]
dependencies = [
"authlib>=1.10.0b1",
"babel>=2.18.0",
"faker>=40.54.0",
"flask>=3.1.2",
"flask-babel>=4.0.0",
"flask-sqlalchemy>=3.1.1",
"flask-wtf>=1.3.0",
"flask-wtforms-htmx>=0.1.0",
"httpx2>=2.16.2",
"pygments>=2.21.0",
"python-avatars>=1.4.1",
"python-dotenv>=1.2.4",
]
[project.urls]
repository = "https://github.com/authlib/auth-server-playground"
[project.scripts]
auth-server-playground = "auth_server_playground.cli:run"
[project.optional-dependencies]
granian = [
"granian>=2.8.8",
]
[dependency-groups]
conformance = [
"httpx>=0.28.1",
"pyparsing>=3.3.3",
]
dev = [
"flask-webtest>=0.1.6",
"prek>=0.5.10",
"pytest>=9.2.0",
"pytest-cov>=7.1.0",
"tox-uv>=1.37.7",
"webtest>=3.0.7",
]
[tool.hatch.build.targets.wheel]
packages = ["src/auth_server_playground"]
[tool.hatch.build]
include = [
"src/auth_server_playground/**/*.py",
"src/auth_server_playground/templates/",
"src/auth_server_playground/static/",
"src/auth_server_playground/translations/",
]
exclude = [
"tests/",
"**/__pycache__",
"**/*.pyc",
]
artifacts = [
"src/auth_server_playground/translations/*/LC_MESSAGES/*.mo",
]
[tool.hatch.build.hooks.custom]
dependencies = [
"Babel>=2.14.0",
]
[tool.coverage.run]
source = [
"auth_server_playground",
"tests",
]
omit = [".tox/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"@pytest.mark.skip",
"pragma: no cover",
"raise NotImplementedError",
"except ImportError",
"if app.debug",
"pass",
"if TYPE_CHECKING",
]
[tool.ruff.lint]
select = [
"D", # pydocstyle
"B", # flake8-bugbear
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long
"E722", # bare-except
"D100", # public module
"D101", # public class
"D102", # public method
"D103", # public function
"D104", # public package
"D105", # magic method
"D106", # nested class
"D107", # public init
"D203", # no-blank-line-before-class
"D213", # multi-line-summary-second-line
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.format]
docstring-code-format = true
[tool.tox]
requires = ["tox>=4.19"]
env_list = [
"style",
"py311",
"py312",
"py313",
"py314",
"py315",
"minversions",
"coverage",
]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
dependency_groups = ["dev"]
commands = [
["pytest", "--showlocals", "--full-trace", "{posargs}"],
]
[tool.tox.env.style]
skip_install = true
runner = "uv-venv-runner"
commands = [
["prek", "run", "--all-files", "--show-diff-on-failure"],
]
[tool.tox.env.minversions]
runner = "uv-venv-runner"
basepython = ["python3.11"]
skip_install = true
dependency_groups = []
allowlist_externals = ["uv"]
# A single install step, so the test dependencies do not upgrade the lowest versions.
commands_pre = [
["uv", "pip", "install", "--python", "{env_python}", "--resolution", "lowest-direct", "--group", "dev", "-e", "."],
]
[tool.tox.env.coverage]
commands = [
[
"pytest",
"--cov",
"--cov-report",
"term:skip-covered",
"--cov-fail-under=100",
"{posargs}",
],
["coverage", "html"],
]
[[tool.babel.mappings]]
method = "python"
pattern = "**.py"
[[tool.babel.mappings]]
method = "jinja2"
pattern = "**/templates/**.html"
trimmed = "true"
[tool.pytest.ini_options]
filterwarnings = [
"error",
# WebOb imports the cgi module on Python < 3.13.
"ignore:'cgi' is deprecated:DeprecationWarning",
]