-
-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (99 loc) · 2.67 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (99 loc) · 2.67 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
[project]
name = "archweb"
version = "0.1.0"
description = "Arch Linux website code"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"bencode-py==4.0.0",
"bleach==6.4.0",
"django==5.2.14",
"django-countries==8.2.0",
"django-csp==4.0",
"django-prometheus==2.5.0",
"feedparser==6.0.12",
"ipy==1.1",
"jsmin==3.0.1",
"markdown==3.10.2",
"parse==1.22.1",
"pgpdump==1.5",
"requests==2.34.2",
"sqlparse==0.5.5",
"django-ninja==1.6.2",
]
[dependency-groups]
dev = [
"django-debug-toolbar==7.0.0",
"django-stubs[compatible-mypy]>=5.2.0",
"flake8>=7.3.0",
"mypy>=1.15.0",
"pytest>=9.1.1",
"pytest-cov>=6.2.1",
"pytest-django>=4.11.1",
"ruff>=0.15.20",
"types-bleach>=6.0.0",
"types-Markdown>=3.6.0",
"types-requests>=2.32.0",
]
prod = [
"pyasyncore==1.0.5",
"pyinotify==0.9.6",
"pymemcache==4.0.0",
]
postgres = [
"psycopg2==2.9.12",
]
smtp = [
"aiosmtpd>=1.4.6",
]
[tool.ruff]
line-length = 118
exclude = [
"*/migrations/*.py", # Ignore Django migrations
"archlinux_common_style/*", # git submodule
]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle
"F", # pyflakes
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"PLE", # pylint errors
"RSE", # flake8-raise
"RUF", # ruff rules
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"UP032", # f-string
"UP008", # super-call-with-parameters
"W", # warnings (mostly whitespace)
"YTT", # flake8-2020
]
ignore = [
"E731", # Do not assign a `lambda` expression, use a `def`
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
# TODO: add these one by one
"DJ001", # Avoid using `null=True` on string-based fields such as `CharField`
"DJ006", # Do not use `exclude` with `ModelForm`, use `fields` instead
"DJ012", # Order of model's inner classes, methods, and fields does not follow the Django Style Guide: `Meta` class should come before `get_absolute_url`
"FBT002", # default-value-positional-argument
]
[tool.mypy]
python_version = "3.14"
plugins = ["mypy_django_plugin.main"]
exclude = [
"migrations/",
"archlinux_common_style/",
]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "settings"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "settings"