-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (65 loc) · 1.59 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
[build-system]
requires = ["setuptools >= 64"]
build-backend = "setuptools.build_meta"
[project]
name = "django_cached_auth_middleware"
dynamic = ["version"]
authors = [
{name = "Sector Labs", email = "open-source@sectorlabs.ro"},
]
description = "Drop-in replacement for `django.contrib.auth.middleware.AuthenticationMiddleware` with cached `request.user`"
requires-python = ">=3.8"
license = { text = "MIT" }
readme = "README.md"
[project.optional-dependencies]
test = [
"pytest",
"black",
"ruff",
"poethepoet",
"pytest-django"
]
publish = [
"build==0.10.0",
"twine==4.0.2",
]
django = ["django>=3.2.12,<5.0.0"]
[tool.setuptools.packages.find]
where = ["."]
include = ["django_cached_auth_middleware*"]
exclude = ["django_cached_auth_middleware.tests*"]
namespaces = false
[tool.setuptools.dynamic]
version = { attr = "django_cached_auth_middleware.__version__" }
[tool.poe.tasks]
fix = ["format", "lint_fix"]
verify = ["verify_format", "lint"]
format = "python -m black --config pyproject.toml ."
verify_format = "python -m black --config pyproject.toml --check ."
lint = "python -m ruff check --config ruff.toml ."
lint_fix = "python -m ruff check --config ruff.toml --fix ."
test = "python -m pytest"
[tool.black]
line-length = 110
target-version = ["py39"]
include = ".pyi?$"
exclude = '''
/( # Default config
\.git
| \.hg
| \.tox
| \.venv
| build
| dist
| node_modules
| migrations
| env
| .env
| venv
| .venv
| .pytest_cache
| .pipcache
)/
'''
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "django_cached_auth_middleware.tests.django.settings"