-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
196 lines (174 loc) · 3.84 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
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
# ==== pytest ====
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--ds=config.settings.test --reuse-db"
python_files = [
"tests.py",
"test_*.py",
]
# ==== Coverage ====
[tool.coverage.run]
include = ["metadata_catalogue/**"]
omit = ["*/migrations/*", "*/tests/*"]
plugins = ["django_coverage_plugin"]
# ==== black ====
[tool.black]
line-length = 119
target-version = ['py311']
# ==== isort ====
[tool.isort]
profile = "black"
line_length = 119
known_first_party = [
"metadata_catalogue",
"config",
]
skip = ["venv/"]
skip_glob = ["**/migrations/*.py"]
# ==== mypy ====
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
plugins = [
"mypy_django_plugin.main",
]
[[tool.mypy.overrides]]
# Django migrations should not produce any errors:
module = "*.migrations.*"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "config.settings.test"
# ==== PyLint ====
[tool.pylint.MASTER]
load-plugins = [
"pylint_django",
]
django-settings-module = "config.settings.local"
[tool.pylint.FORMAT]
max-line-length = 119
[tool.pylint."MESSAGES CONTROL"]
disable = [
"missing-docstring",
"invalid-name",
]
[tool.pylint.DESIGN]
max-parents = 13
[tool.pylint.TYPECHECK]
generated-members = [
"REQUEST",
"acl_users",
"aq_parent",
"[a-zA-Z]+_set{1,2}",
"save",
"delete",
]
# ==== djLint ====
[tool.djlint]
blank_line_after_tag = "load,extends"
close_void_tags = true
format_css = true
format_js = true
# TODO: remove T002 when fixed https://github.com/Riverside-Healthcare/djLint/issues/687
ignore = "H006,H030,H031,T002"
include = "H017,H035"
indent = 2
max_line_length = 119
profile = "django"
[tool.djlint.css]
indent_size = 2
[tool.djlint.js]
indent_size = 2
[tool.pdm.dev-dependencies]
dev = [
"Werkzeug[watchdog]",
"ipdb",
"mypy",
"django-stubs[compatible-mypy]",
"pytest",
"pytest-sugar",
"flake8",
"flake8-isort",
"coverage",
"black",
"djlint",
"pylint-django",
"pre-commit",
"factory-boy",
"django-debug-toolbar",
"django-extensions",
"django-coverage-plugin",
"pytest-django",
"django-models2puml>=0.2",
]
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
dependencies = [
"python-slugify>=8.0.1",
"Pillow==10.1.0",
"rcssmin",
"argon2-cffi",
"whitenoise",
"redis",
"hiredis",
"psycopg[binary]",
"backoff",
"requests",
"beautifulsoup4",
"lxml",
"django>=4.0.0,<5.0.0",
"django-environ",
"django-model-utils",
"django-allauth",
"django-crispy-forms",
"crispy-bootstrap5",
"django-redis",
"django-health-check",
"django-probes",
"django-countries-plus",
"django-languages-plus",
"django-postgres-extra",
"django-q",
"OWSLib",
"shapely",
"xmltodict",
"geolinks",
"pycsw @ git+https://github.com/geopython/[email protected]",
"django-solo",
"pygeometa",
"django-lifecycle",
"pygeoapi @ git+https://github.com/geopython/pygeoapi.git@de1a7d93eeb492c2b51908e9875a61074b7eab6b",
"django-treebeard>=4.7",
"django-polymorphic>=3.1.0",
"django-ninja>=1.1.0",
"django-appconf>=1.0.6",
"django-cors-headers>=4.3.1",
"rules>=3.3",
"django-rest-framework>=0.1.0",
"drf-spectacular>=0.27.2",
"drf-nested-routers",
"drf-standardized-errors[openapi]",
"django-filter>=24.2",
]
requires-python = ">=3.10"
name = ""
version = ""
description = ""
authors = [
{name = "Niccolò Cantù", email = "[email protected]"},
]
readme = "README.md"
license = {text = "GPLv3"}
[project.optional-dependencies]
production = [
"sentry-sdk[django]>=1.43.0",
"gunicorn>=21.2.0",
]
docs = [
"sphinx>=7.2.6",
"sphinx-autobuild>=2021.3.14",
]