-
-
Notifications
You must be signed in to change notification settings - Fork 574
Expand file tree
/
Copy pathpyproject.toml
More file actions
236 lines (219 loc) · 6.38 KB
/
pyproject.toml
File metadata and controls
236 lines (219 loc) · 6.38 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=78.0.2"]
[dependency-groups]
dev = [
"coverage==7.13.5",
"flake8==7.3.0",
"google-auth-stubs==0.3.0",
"mypy==1.20.1",
"pyright==1.1.408",
"pytest-cov==7.1.0",
"pytest-github-actions-annotate-failures==0.4.0",
"pytest-profiling==1.8.1",
"pytest-xdist==3.8.0",
"pytest==9.0.3",
"responses==0.26.0",
"ty==0.0.29",
"types-defusedxml==0.7.0.20260408",
"types-oauthlib==3.3.0.20260408",
"types-requests-oauthlib==2.0.0.20260408",
"types-requests==2.33.0.20260408",
{include-group = "pylint"}
]
pylint = [
"pylint==4.0.5"
]
[project]
authors = [
{email = "matiasaguirre@gmail.com", name = "Matias Aguirre"},
{email = "michal@weblate.org", name = "Michal Čihař"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python",
"Topic :: Internet"
]
dependencies = [
"defusedxml>=0.7.1",
"oauthlib>=3.3.1",
"PyJWT[crypto]==2.12.1",
"python3-openid>=3.2.0",
"requests-oauthlib>=2.0.0",
"requests>=2.32.5"
]
description = "Python social authentication made simple."
keywords = ["oauth", "openid", "saml", "social auth"]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
name = "social-auth-core"
readme = "README.md"
requires-python = ">=3.10"
version = "4.8.5"
[project.optional-dependencies]
all = [
"social-auth-core[azuread]",
"social-auth-core[google-onetap]",
"social-auth-core[saml]",
"social-auth-core[shopify]"
]
allpy3 = [
"social-auth-core[all]"
]
azuread = [
"cryptography>=42.0.8"
]
# This is present until pip implements supports for PEP 735
# see https://github.com/pypa/pip/issues/12963
dev = [
"coverage==7.13.5",
"flake8==7.3.0",
"google-auth-stubs==0.3.0",
"mypy==1.20.1",
"pyright==1.1.408",
"pytest-cov==7.1.0",
"pytest-github-actions-annotate-failures==0.4.0",
"pytest-profiling==1.8.1",
"pytest-xdist==3.8.0",
"pytest==9.0.3",
"responses==0.26.0",
"ty==0.0.29",
"types-defusedxml==0.7.0.20260408",
"types-oauthlib==3.3.0.20260408",
"types-requests-oauthlib==2.0.0.20260408",
"types-requests==2.33.0.20260408"
]
google-onetap = [
"google-auth>=2.40.0,<2.50"
]
saml = [
"python3-saml>=1.16.0"
]
shopify = [
"ShopifyAPI"
]
[project.urls]
Changelog = "https://github.com/python-social-auth/social-core/blob/master/CHANGELOG.md"
Funding = "https://opencollective.com/python-social-auth"
Homepage = "https://github.com/python-social-auth/social-core"
[tool.check-manifest]
ignore = [
".coveragerc",
".pre-commit-config.yaml",
".well-known/funding-manifest-urls",
"tox.ini"
]
[tool.codespell]
count = true
ignore-words-list = "assertIn"
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
disallow_untyped_defs = true
ignore_missing_imports = true
module = [
"google.appengine.*",
"onelogin.*",
"openid.*",
"shopify.*"
]
[tool.pylint.main]
disable = [
"abstract-method", # TODO
"arguments-differ", # TODO
"duplicate-code", # TODO
"fixme",
"invalid-name", # TODO
"keyword-arg-before-vararg", # TODO
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-member", # TODO
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-positional-arguments", # TODO
"too-many-public-methods",
"unused-argument"
]
[tool.pyright]
executionEnvironments = [
{reportMissingImports = "none", root = "social_core/backends/gae.py"}
]
pythonVersion = "3.10"
reportOptionalMemberAccess = "none"
reportPossiblyUnboundVariable = "none"
[tool.pytest.ini_options]
addopts = "--cov=social_core --cov-report=xml --durations=10"
[tool.ruff.lint]
extend-safe-fixes = [
"ANN",
"D",
"FA102",
"FLY",
"SIM",
"TCH",
"UP"
]
future-annotations = true
ignore = [
"ANN", # TODO: Missing type annotations
"ARG001", # TODO: Unused function argument (mostly for API compatibility)
"ARG002", # TODO: Unused method argument (mostly for API compatibility)
"ARG003", # TODO: Unused class method argument
"COM", # CONFIG: No trailing commas
"D", # TODO: Missing documentation
"D203", # CONFIG: incompatible with D211
"D212", # CONFIG: incompatible with D213
"DTZ001", # TODO: `datetime.datetime()` called without a `tzinfo` argument
"DTZ005", # TODO: `datetime.datetime.now()` called without a `tz` argument
"E501", # WONTFIX: we accept long strings (rest is formatted by ruff)
"EM101", # TODO: Exception must not use a string literal, assign to variable first
"EM102", # TODO: Exception must not use an f-string literal, assign to variable first
"ERA001", # TODO: Found commented-out code
"FBT", # TODO: Boolean in function definition
"FIX002", # CONFIG: we use TODO
"ISC003", # TODO: Explicitly concatenated string should be implicitly concatenated
"N", # TODO: Naming issues
"PERF203", # WONTFIX: This rule is only enforced for Python versions prior to 3.11
"PLR2004", # TODO: Magic value used in comparison
"PLW2901", # TODO: loop variable overwritten by assignment target
"PT", # CONFIG: Not using pytest
"RUF012", # TODO: Type annotations
"S101", # TODO: Use of `assert` detected
"S105", # TODO: Possible hardcoded password assigned
"S301", # TODO: `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
"TD002", # CONFIG: no detailed TODO documentation is required
"TD003", # CONFIG: no detailed TODO documentation is required
"TRY003", # TODO: Avoid specifying long messages outside the exception class
'ISC001' # CONFIG: formatter
]
select = ["ALL"]
[tool.ruff.lint.mccabe]
max-complexity = 11 # TODO: should be lower
[tool.ruff.lint.per-file-ignores]
"social_core/pipeline/debug.py" = ["T201", "T203"]
[tool.ruff.lint.pylint]
# TODO: all these should be lower (or use defaults)
max-args = 7
max-branches = 15
[tool.setuptools]
packages = ["social_core"]
[tool.tomlsort]
ignore_case = true
sort_inline_arrays = true
sort_inline_tables = true
sort_table_keys = true
spaces_before_inline_comment = 2