-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
142 lines (132 loc) · 3.32 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
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
[project]
name = "oidc-provider-mock"
version = "0.0.1.alpha2.dev1"
description = "OpenID Connect provider server for testing authentication"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = [
"OpenID Connect",
"OIDC",
"mock",
"OAuth",
"testing",
"development",
"authentication",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Mocking",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Security",
]
dependencies = [
"authlib>=1.4.0",
"flask>=3.1.0",
"pydantic>=2.10.4",
"typing-extensions>=4.12.2",
"uvicorn>=0.34.0",
]
[project.scripts]
oidc-provider-mock = "oidc_provider_mock.__main__:run"
[project.urls]
# https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels
Homepage = "https://github.com/geigerzaehler/oidc-provider-mock"
Documentation = "https://github.com/geigerzaehler/oidc-provider-mock"
Source = "https://github.com/geigerzaehler/oidc-provider-mock"
Issues = "https://github.com/geigerzaehler/oidc-provider-mock/issues"
[dependency-groups]
dev = [
"faker>=33.3.1",
"flask-oidc>=2.2.2",
"furo>=2024.8.6",
"httpx>=0.28.1",
"myst-parser>=4.0.0",
"oic>=1.7.0",
"pyright>=1.1.391",
"pytest-cov>=6.0.0",
"pytest-flask>=1.3.0",
"pytest-randomly>=3.16.0",
"pytest-watcher>=0.4.3",
"pytest>=8.3.4",
"ruff>=0.8.4",
"sphinx-autobuild>=2024.10.3",
"sphinx>=8.1.3",
"typeguard>=4.4.1",
"watchfiles>=1.0.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
addopts = """\
--verbose \
--cov-report term
--cov-report html
--tb=short
"""
python_files = ["*_test.py", "*/examples/*.py"]
filterwarnings = [
"error",
"ignore:Cannot resolve forward reference 'Response':typeguard.TypeHintWarning",
"ignore:datetime.datetime.utcnow:DeprecationWarning",
]
typeguard-debug-instrumentation = true
typeguard-forward-ref-policy = "WARN"
typeguard-collection-check-strategy = "ALL_ITEMS"
# pytest-flask
live_server_scope = "function"
[tool.ruff.format]
preview = true
[tool.ruff.lint]
preview = true
extend-select = [
"I",
"UP",
"PT",
"PIE",
"B",
"SIM",
"TCH",
"T20",
"RUF",
"C4", # List comprehension
"DTZ",
"FURB",
]
ignore = [
# Pyright checks for unused imports and does it better.
"F401",
# contextlib.suppress() is less explicit
"SIM105",
# ternary is often less readable
"SIM108",
# Ignore ambigious unicode characters
"RUF001",
"RUF002",
"RUF003",
# ClassVar annotations are to verbose
"RUF012",
# It’s ok to reimplement operators in lambdas. The lambda is more explicit and
# easier to understand.
"FURB118",
]
[tool.pyright]
typeCheckingMode = "strict"
reportMissingTypeStubs = "none"
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedClass = "warning"
reportUnusedImport = "warning"
reportUnusedFunction = "none"
reportUnusedVariable = "warning"
[tool.coverage.run]
branch = true