-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (132 loc) · 2.62 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
[project]
name = "space-x-prototype"
version = "0.0.1"
description = "space-x-prototype"
dependencies = [
"django>=5.0.7",
"django-extensions>=3.2.3",
"django-storages>=1.14.2",
"django-tailwind[reload]>=3.8.0",
"gunicorn>=21.2.0",
"httptools>=0.6.1",
"ipython>=8.22.2",
"pillow>=10.2.0",
"psycopg[binary]>=3.1.18",
"requests>=2.31.0",
"uvicorn>=0.29.0",
"uvloop>=0.19.0",
]
readme = "README.md"
requires-python = ">= 3.12"
[tool.rye]
virtual = true
universal = true
dev-dependencies = [
"black>=24.2.0",
"ruff>=0.3.1",
"django-debug-toolbar>=4.3.0",
"djlint>=1.34.1",
"freezegun>=1.4.0",
"pre-commit>=3.6.2"
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "app.settings"
norecursedirs = "assets static uploads .git node_modules htmlcov .tox .cache .pnpm-store"
[tool.ruff]
target-version = "py310"
fix = true
line-length = 100
lint.select = [
"D",
"E",
"F",
"W",
"B",
"I",
"UP",
"N",
"B",
"A",
"C4",
"ISC",
"ICN",
"T20",
"C90",
"PT",
"PL",
"Q",
"RET",
"SIM",
"TID",
"ERA",
"PLC",
"PLE",
"PLR",
"PLW",
"PIE",
"RUF",
]
lint.extend-ignore = [
"A003",
"RUF005",
"N999",
"D104",
"D100",
"D107",
"D417",
"D102",
"D103",
"D105",
"D106",
]
exclude = [
".git",
".mypy_cache",
".ruff_cache",
"build",
"dist",
"node_modules",
"migrations",
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-single-line = false
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "double"
avoid-escape = true
[tool.ruff.lint.pylint]
allow-magic-value-types = ["int", "str", "bytes"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.extend-per-file-ignores]
"models.py" = ["D101"]
"admin.py" = ["D101"]
"managers.py" = ["D101"]
"forms.py" = ["D101"]
"apps.py" = ["D101"]
"views.py" = ["D101"]
"sitemaps.py" = ["D101"]
"uvicorn_class.py" = ["D101", "RUF012"]
"data.py" = ["E501"]
[tool.black]
line-length = 100
skip-string-normalization = true
target-version = ['py310']
[tool.djlint]
profile = "django"
use_gitignore = true
preserve_blank_lines = true
custom_blocks = "component_block,fill,slot"
blank_line_after_tag = "load,extends"
close_void_tags = false
format_css = true
format_js = true
# TODO: remove T002 when fixed https://github.com/Riverside-Healthcare/djLint/issues/687
ignore = "H006,H016,H021,H023,H030,H031,H035,T002,T003"
max_line_length = 120
max_attribute_length = 100
no_function_formatting = true