forked from leibowitz/django-azure-ad-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
215 lines (197 loc) · 5.63 KB
/
Copy pathpyproject.toml
File metadata and controls
215 lines (197 loc) · 5.63 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[project]
name = "django-azure-ad-auth-redux"
version = "1.5.26"
description="Authenticate users using Azure Active Directory."
authors = [
{ name="Scott Sharkey", email="scott.sharkey@rsginc.com" },
]
license = "MIT"
#packages = [{include = "azure_ad_auth"}]
readme = "README.md"
repository = "https://github.com/lanshark/django-azure-ad-auth-redux"
requires-python = ">=3.12,<4"
homepage = "https://github.com/lanshark/django-azure-ad-auth-redux"
keywords = [ "Python, Active Directory, Django", ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
]
include = [
"LICENSE",
]
dependencies = [
"cryptography>=44.0.2",
"lxml>=5.0.1",
"pyjwt>=2.10.1",
"requests>=2.32.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
lint = [
"pre-commit>=3.7.1",
]
dev = [
"icecream>=2.1.4",
"mock>=5.2.0",
"pylint>=3.3.5",
"pylint-django>=2.6.1",
]
[tool.black]
line-length = 88
force_exclude = '''
'''
[tool.django-stubs]
django_settings_module = "conf.settings"
[tool.hatch.build.targets.sdist]
include = ["azure_ad_auth"]
[tool.hatch.build.targets.wheel]
include = ["azure_ad_auth"]
[tool.isort]
profile = "black"
extra_standard_library = ["requests"]
force-single-line = false
include_trailing_comma = true
lines_after_imports = 2
line_length = 88
multi_line_output = 3
use_parenthesis = true
known-first-party = [
"azure_ad_auth",
]
[tool.mypy]
python_version = "3.12"
plugins = "mypy_django_plugin.main"
[tool.ruff]
show-fixes = true
exclude = [
".tox",
"build",
".eggs",
".git",
".mypy_cache",
".ruff_cache",
"__pypackages__",
]
fix = true
line-length = 88
target-version = "py312"
[tool.ruff.lint]
task-tags = ["NOTE", "TODO", "FIXME"]
select = [
"A",
"ARG",
"B",
"C4",
"C90",
"COM",
"DTZ",
"D",
"E",
"EM",
"F",
"G",
# "I", # TODO: use `isort` in `ruff` once it contains all desired configurations
"ICN",
"INP",
"ISC",
"N",
"PD",
"PIE",
"PGH",
"PL",
"PLC",
"PLE",
"PLR",
"PLW",
"PT",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SLF",
"SIM",
"TCH",
"T10",
"T20",
"TID",
"UP",
"W",
]
ignore = [
"ANN", # Temporary - til we get standard for types
"BLE", # Temporary - need to be specific on Exceptions...
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magix method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in `__init__.py`
"D200", # One-line docstring should fit on one line
"D205", # 1 blank line required between summary line and description
"D211", # no-blank-line-before-class docstring
"D212", # multi-line-summary-first-line
"D415", # First line should end with a period, question mark, or exclamation point
"ERA", # DON'T eradicate commented code, for now...
"G004", # logging-f-string -- allow (encourage) f-strings in logs
"N999",
"PD010",
"PD011",
"PLR0913", # Too many arguments to function call
"PD010",
"PD011",
"PTH", # TODO: temporary - disable things that require code changes...
"RET504", # Unecessary variable assignment before `return` statement - broken
"RET505", # Unnecessary else after `return`
"RET506", # Unnecessary else after `raise` statement
"RET507", # Unnecessary `elif` after `continue` statement
"RUF012", # Mutable class attributes should be annotated with 'typing.ClassVar'
"S311", # TODO: temporary - Standard pseudo-random generators are not suitable for cryptographic purposes
"S608", # TODO: temporary - possible SQL injection vector through string-based query construction
"SLF001", # Private member accessed
"T201", # `print` found -- TODO: temporary - should replace with log statements
"T203", # `p-print` found -- TODO: temporary - Discuss with team
"TCH001", # Move application import into a type-checking block
"TCH002", # Move third-party import into a type-checking block
"TCH003", # Move standard library import into a type-checking block
"TRY", # TODO: temporary - try/catch block linter
]
[tool.ruff.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true
# NOTE: These should be used SPARINGLY - use # noqa: F401 on the affected line instead.
# Most common will be E501 - line too long, but break it if you can to < 88 chars
[tool.ruff.per-file-ignores]
"conf/settings.py" = ["ERA001"] # Found commented-out code
[tool.ruff.lint.isort]
force-single-line = false
known-first-party = [
"azure_ad_auth",
]
lines-after-imports = 2
[tool.ruff.pydocstyle]
convention = "google"
[tool.uv]
default-groups = [
"dev",
"lint",
]
[tool.uv.sources]