-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
152 lines (128 loc) · 2.6 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
[project]
name = ""
version = "1.0.0"
description = ""
authors = [
{ name = "Dan Sloan", email = "827555+LucidDan@users.noreply.github.com" },
]
dependencies = [
"django[argon2]>=4.2.2",
"django-stubs-ext>=4.2.1",
"daphne>=4.0.0",
"Twisted[http2,tls]>=22.10.0",
"django-bootstrap5>=23.3",
"django-htmx>=1.16.0",
"redis>=4.5.5",
]
requires-python = ">=3.11"
license = "GPL-3.0"
[project.optional-dependencies]
postgres = ["psycopg[binary]>=3.1.9",]
[tool.pdm.dev-dependencies]
mypy = [
"mypy>=1.3.0",
"django-stubs>=4.2.1",
]
test = [
"pytest-django>=4.5.2",
"pytest-xdist>=3.3.1",
"pytest>=7.3.2",
"pytest-factoryboy>=2.5.1",
]
uitest = [
"pytest-playwright>=0.3.3",
"playwright>=1.36.0",
]
lint = [
"ruff>=0.0.272",
"black>=23.3.0",
]
dev = [
"safety>=2.3.4",
"pre-commit>=3.3.3",
"sendria>=2.2.2",
]
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.ruff]
# Same as Black.
line-length = 120
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".github",
".ruff_cache",
".venv",
"migrations",
"static",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
[tool.pytest.ini_options]
minversion = "7.1"
required_plugins = [
"pytest-django",
"pytest-factoryboy",
"pytest-xdist"
]
django_find_project = true
DJANGO_SETTINGS_MODULE = "demo.settings"
addopts = "--strict-markers"
# Define custom markers here (required with strict-markers)...
markers = [
]
testpaths = [
"tests"
]
xfail_strict = "True"
filterwarnings = [
"ignore::DeprecationWarning:widget_tweaks",
"ignore::DeprecationWarning:pkg_resources"
]
[tool.coverage.run]
plugins = [
"django_coverage_plugin"
]
branch = true
source = [
"demo/",
]
omit = [
"manage.py",
"*migrations*"
]
disable_warnings = [
"no-data-collected"
]
[tool.coverage.report]
skip_covered = true
skip_empty = true
sort = "Cover"
[tool.coverage.json]
pretty_print = true
[tool.coverage.xml]
output = "rpt-coverage-pytest.xml"
[tool.django-stubs]
django_settings_module = "demo.settings"
[tool.mypy]
python_version = '3.11'
plugins = [
'mypy_django_plugin.main',
]
files = [
"manage.py",
"demo/",
"tests/"
]
junit_xml = "rpt-unit-mypy.xml"
[[tool.mypy.overrides]]
# auto-generated migrations don't have types (so far)
module = '*.migrations.*'
ignore_errors = true