-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
60 lines (54 loc) · 1.23 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "mixtures"
requires-python = ">=3.10"
dependencies = [
"django~=4.1.10",
"dj-database-url~=1.0",
"django-modeltranslation~=0.18",
"django-simple-history~=3.1",
"django-mistune~=0.1",
"django-hosts~=5.2",
"gunicorn",
"huey~=2.4",
"md-anchors~=0.2",
"psycopg2-binary",
"whitenoise~=5.2",
# Needed because some old dependancies use pkg_resources
"setuptools>=68.2.0",
]
[tool.pdm.dev-dependencies]
dev = [
"json-schema-for-humans",
"ruff",
]
[tool.pdm.options]
add = ["--no-self"]
install = ["--no-self"]
remove = ["--no-self"]
[tool.ruff]
extend-exclude = [
"*/migrations/*.*",
".venv/*.*",
]
select = [
"F", "E", "W", "I", "N", "UP", "B", "C4", "DJ", "INP", "PIE", "PYI",
"RSE", "RET", "SLOT", "SIM", "TID", "INT", "PTH", "PERF", "RUF"
]
ignore = [
"DJ003", # TODO: Remove this!
"DJ012",
"PERF203",
"RUF012",
]
line-length = 79
[tool.ruff.per-file-ignores]
"mixtures/settings.py" = ["E501"]
"mixtures/settings_deploy.py"= ["F403", "F405"]
"drugcombinator/urls.py"= ["E501"]
"tests.py" = ["N802"]
[tool.ruff.isort]
lines-after-imports = 2
split-on-trailing-comma = false