-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
42 lines (37 loc) · 942 Bytes
/
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
[project]
requires-python = ">=3.11"
[tool.ruff]
line-length = 119
[tool.ruff.lint]
ignore = [
# Checks for comparisons to empty strings.
# Being falsey is not as precise as == "".
"PLC1901",
# Use a constant over magic numbers
# Too much of a hassle for HTTP status code.
"PLR2004",
]
# see prefixes in https://beta.ruff.rs/docs/rules/
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"B", # bugbear
"PL", # pylint
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["inclusion_connect"]
lines-after-imports = 2
[tool.djlint]
profile="django"
ignore="H006,H014,H017,H023,H030,H031,T002,T003"
custom_blocks="buttons,endbuttons"
max_attribute_length=200
preserve_blank_lines=true
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = [
"PLR0915", # pylint too-many-statements
"PLR0913" # pylint too-many-arguments
]