-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
224 lines (205 loc) · 5.24 KB
/
Copy pathpyproject.toml
File metadata and controls
224 lines (205 loc) · 5.24 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
[build-system]
requires = ["setuptools>=70.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "django-session-security-continued"
description = "Client and server-side session timeout enforcement with warnings for Django 4.2+."
readme = "README.md"
requires-python = ">=3.9"
license-files = ["LICENSE"]
authors = [
{ name = "Matt Bosworth (https://github.com/mattbo)" },
{ name = "Fabio Caritas Barrionuevo da Luz (https://github.com/luzfcb)" },
{ name = "Pēteris Caune (https://github.com/cuu508)" },
{ name = "John David Giese (https://github.com/johndgiese)" },
{ name = "Jose Antonio Martin Prieto (https://github.com/jantoniomartin)" },
{ name = "Richard Moorhead (https://github.com/autodidacticon)" },
{ name = "Jean-Michel Nirgal Vourgère (https://github.com/nirgal)" },
{ name = "Michał Pasternak (https://github.com/mpasternak)" },
{ name = "James Pic (https://github.com/jpic)" },
{ name = "Matthew Schettler (https://github.com/mschettler)" },
{ name = "Scott Sexton (https://github.com/scottsexton)" },
{ name = "Jacek Ostański (https://github.com/jacoor)" },
{ name = "Aaron Krill (https://github.com/krillr)" },
{ name = "@yscumc (https://github.com/yscumc)" },
{ name = "Marco Fucci (https://github.com/marcofucci)" },
{ name = "Andrei Coman (https://github.com/comandrei)" },
{ name = "Ali Hasan Imam (https://github.com/alihasanimam)" },
{ name = "Joel Hillacre (https://github.com/jhillacre)" },
{ name = "Peter Mack (https://github.com/pmack)" }
]
maintainers = [
{ name = "Arrai Innovations", email = "support@arrai.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"django>=4.2,<5.3",
]
dynamic = ["version"]
[project.urls]
repository = "https://github.com/arrai-innovations/django-session-security-continued"
[dependency-groups]
dev = [
"build>=1.2.2",
"coverage[toml]>=7.6.10",
"django-coverage-plugin>=3.1.0",
"md-toc>=8.2.2",
"pre-commit>=4.1.0",
"pytest>=8.3.0",
"pytest-cov>=5.0.0",
"pytest-django>=4.8.0",
"pytest-sugar>=0.9.7",
"ruff==0.12.12",
"selenium>=4.21.0",
"unittest-data-provider>=1.0.1",
]
[tool.uv]
default-groups = ["dev"]
[tool.ruff]
line-length = 120
target-version = "py39"
exclude = [
".git",
".github",
".circleci",
"docs",
"*/migrations/*",
]
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = [
"A",
"B0",
"C4",
"C90",
"DJ",
"E",
"W",
"F",
"FIX",
"G",
"I",
"INP",
"N",
"PLC",
"PLE",
"Q",
"RUF",
"S",
"SIM",
"T10",
"T20",
"TID",
"UP",
]
ignore = [
"E501",
"FIX002",
"FIX004",
"PLC0415",
"RUF005",
"RUF019",
"RUF021",
"RUF051",
"S101",
"S308",
"SIM105",
"SIM108",
]
[tool.ruff.lint.per-file-ignores]
"*/tests/*" = [
"B018",
"DJ008",
"N818",
"RUF001",
"RUF002",
"RUF012",
"S",
"SIM",
]
"session_security/tests/project/settings.py" = ["S105"]
"test_project/test_project/settings.py" = ["S105"]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.isort]
known-first-party = ["session_security"]
force-single-line = true
lines-after-imports = 2
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.pep8-naming]
ignore-names = [
"setUp",
"tearDown",
"setUpClass",
"tearDownClass",
"setUpModule",
"tearDownModule",
"asyncSetUp",
"asyncTearDown",
"setUpTestData",
"failureException",
"longMessage",
"maxDiff",
"assert*",
]
[tool.pytest.ini_options]
django_find_project = false
pythonpath = ["."]
DJANGO_SETTINGS_MODULE = "session_security.tests.project.settings"
addopts = "--ds=session_security.tests.project.settings --reuse-db"
testpaths = ["session_security/tests"]
python_files = ["test_*.py"]
markers = [
"selenium: marks tests that require a browser",
]
[tool.coverage.run]
branch = true
parallel = true
source = ["session_security"]
omit = [
"*/migrations/*",
]
concurrency = ["multiprocessing"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"except ImportError",
"raise ImportError",
]
[tool.setuptools]
package-dir = { "" = "." }
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "session_security.__version__" }
[tool.setuptools.packages.find]
where = ["."]
include = ["session_security*"]
[tool.setuptools.package-data]
"session_security" = [
"templates/**/*.html",
"static/**/*.css",
"static/**/*.js",
"static/**/*.map",
"locale/**/*.po",
]