-
-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathpyproject.toml
165 lines (155 loc) · 5.63 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]
[dependency-groups]
dev = [
"flake8>=5.0.4",
"pytest>=4.5",
"httpretty~=1.1.0",
"coverage>=3.6",
"pytest-cov>=2.7.1",
# pinned because of https://github.com/gabrielfalcao/HTTPretty/issues/484
"urllib3~=2.2.0",
"pyright>=1.1.391",
"pytest-xdist>=3.6.1"
]
[project]
authors = [
{name = "Matias Aguirre", email = "[email protected]"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"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.9",
"Topic :: Internet"
]
dependencies = [
"PyJWT>=2.7.0",
"cryptography>=1.4",
"defusedxml>=0.5.0",
"oauthlib>=1.0.3",
"python3-openid>=3.0.10",
"requests-oauthlib>=0.6.1",
"requests>=2.9.1"
]
description = "Python social authentication made simple."
keywords = ["openid", "oauth", "saml", "social auth"]
license = {text = "BSD"}
name = "social-auth-core"
readme = "README.md"
requires-python = ">=3.9"
version = "4.5.4"
[project.optional-dependencies]
all = [
"social-auth-core[saml]",
"social-auth-core[azuread]"
]
allpy3 = [
"social-auth-core[all]"
]
azuread = [
"cryptography>=2.1.1"
]
# This is present until pip implements supports for PEP 735
# see https://github.com/pypa/pip/issues/12963
dev = [
"flake8>=5.0.4",
"pytest>=4.5",
"httpretty~=1.1.0",
"coverage>=3.6",
"pytest-cov>=2.7.1",
# pinned because of https://github.com/gabrielfalcao/HTTPretty/issues/484
"urllib3~=2.2.0",
"pyright>=1.1.391"
]
saml = [
"python3-saml>=1.5.0",
# pinned to 5.2 until a new wheel of xmlsec is released
"lxml~=5.2.1"
]
[project.urls]
Homepage = "https://github.com/python-social-auth/social-core"
[tool.codespell]
count = true
ignore-words-list = "assertIn"
[tool.ruff.lint]
extend-safe-fixes = [
"D",
"TCH",
"FLY",
"SIM",
"ANN",
"FA102",
"UP"
]
ignore = [
"COM", # CONFIG: No trailing commas
"D203", # CONFIG: incompatible with D211
"D212", # CONFIG: incompatible with D213
"E501", # WONTFIX: we accept long strings (rest is formatted by ruff)
'ISC001', # CONFIG: formatter
"PT", # CONFIG: Not using pytest
"FIX002", # CONFIG: we use TODO
"TD002", # CONFIG: no detailed TODO documentation is required
"TD003", # CONFIG: no detailed TODO documentation is required
"ANN", # TODO: Missing type annotations
"D", # TODO: Missing documentation
"B904", # TODO: use raise from
"PLR2004", # TODO: Magic value used in comparison
"PLW2901", # TODO: loop variable overwritten by assignment target
"N", # TODO: Naming issues
"PTH", # TODO: Not using pathlib
"RUF012", # TODO: 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
"ARG005", # TODO: Unused lambda argument
"TID252", # TODO: Prefer absolute imports over relative imports from parent modules
"FBT", # TODO: Boolean in function definition
"S105", # TODO: Possible hardcoded password assigned
"S113", # TODO: Probable use of `requests` call without timeout
"B018", # TODO: Found useless expression.
"A001", # TODO: Variable is shadowing a Python builtin
"A002", # TODO: Function argument is shadowing a Python builtin
"A004", # TODO: Import `ConnectionError` is shadowing a Python builtin
"ERA001", # TODO: Found commented-out code
"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
"TRY003", # TODO: Avoid specifying long messages outside the exception class
"S101", # TODO: Use of `assert` detected
"DTZ001", # TODO: `datetime.datetime()` called without a `tzinfo` argument
"DTZ005", # TODO: `datetime.datetime.now()` called without a `tz` argument
"B006", # TODO: Do not use mutable data structures for argument defaults
"B026", # TODO: Star-arg unpacking after a keyword argument is strongly discouraged
"S311", # TODO: Standard pseudo-random generators are not suitable for cryptographic purposes
"S301", # TODO: `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
"S324", # TODO: Probable use of insecure hash functions in `hashlib`
"S318", # TODO: Using `xml` to parse untrusted data is known to be vulnerable to XML attacks; use `defusedxml` equivalents
"PLR1704", # TODO: Redefining argument with the local name
"PERF203", # WONTFIX: This rule is only enforced for Python versions prior to 3.11
"ISC003", # TODO: Explicitly concatenated string should be implicitly concatenated
"PLW0603", # TODO: Using the global statement to update `BACKENDSCACHE` is discouraged
"TRY301", # TODO: Abstract `raise` to an inner function
"BLE001", # TODO: Do not catch blind exception: `Exception`
"S110", # TODO: `try`-`except`-`pass` detected, consider logging the exception
"TRY300" # TODO: Consider moving this statement to an `else` block
]
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"]