-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (80 loc) · 2.27 KB
/
pyproject.toml
File metadata and controls
85 lines (80 loc) · 2.27 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
[project]
name = "mahmoudashraf.dev"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = "==3.14.3"
dependencies = [
"beautifulsoup4>=4.13.4,<5",
"bleach>=6.3.0,<7",
"boto3>=1.42.49,<2",
"django>=6.0.2",
"django-allauth[socialaccount]>=65.14.3,<66",
"django-comments-xtd>=2.10.11,<3",
"django-debug-toolbar>=6.2.0,<7",
"django-health-check>=4.0.0,<5",
"django-htmx>=1.27.0,<2",
"django-permissions-policy>=4.28.0,<5",
"django-polymorphic>=4.11.0,<5",
"django-redis>=6.0.0,<7",
"django-simple-captcha>=0.6.3,<1",
"django-storages[s3]>=1.14.6,<2",
"django-tasks>=0.11.0",
"django-vite>=3.1.0,<4",
"environs[django]>=14.5.0,<15",
"gunicorn>=25.1.0,<26",
"markdown>=3.10.2,<4",
"pillow>=12.1.1,<13",
"psutil>=7.2.2,<8",
"psycopg[binary]>=3.3.2,<4",
"python-json-logger>=4.0.0,<5",
"requests>=2.32.5,<3",
"wagtail>=7.2.3,<8",
"wagtail-seo>=3.1.1,<4",
"wagtailmedia>=0.17.2,<1",
"wagtailmenus>=4.0.6,<5",
"wand>=0.6.13,<1",
]
[dependency-groups]
dev = [
"django-stubs-ext>=5.2.9,<6",
"django-types>=0.23.0,<1",
"djlint>=1.36.4,<2",
"pre-commit>=4.5.1,<5",
"ruff>=0.15.1,<1",
]
[tool.djlint]
profile = "django"
format_attribute_template_tags = true
indent = 2
line_break_after_multiline_tag = true
max_line_length = 100
preserve_blank_lines = true
custom_blocks = "link,button,partialdef,partial,field,wagtailcache,wagtailpagecache"
[tool.pyright]
venvPath = "."
venv = ".venv"
reportAssignmentType = "none"
[tool.ruff]
line-length = 100
target-version = "py313"
extend-exclude = ["migrations"]
[tool.ruff.lint]
select = [
"F", # Pyflakes rules
"W", # PyCodeStyle warnings
"E", # PyCodeStyle errors
"I", # Sort imports properly
"UP", # Warn if certain things can changed due to newer Python versions
"C4", # Catch incorrect use of comprehensions, dict, list, etc
"FA", # Enforce from __future__ import annotations
"ISC", # Good use of string concatenation
"ICN", # Use common import conventions
"RET", # Good return practices
"SIM", # Common simplification rules
"TID", # Some good import practices
"TC", # Enforce importing certain types in a TYPE_CHECKING block
"PTH", # Use pathlib instead of os.path
"TD", # Be diligent with TODO comments
"NPY", # Some numpy-specific things
]