-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (57 loc) · 1.7 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (57 loc) · 1.7 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
# ==== ruff ====
[tool.ruff]
line-length = 88 # black default is 88
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401", "F403"]
[tool.ruff.format]
quote-style = "double" # black default is double
indent-style = "space" # black default is space
skip-magic-trailing-comma = false # black default is false
line-ending = "auto" # black default is auto
exclude = ["**/migrations/**/*.py"]
# ==== djlint ====
[tool.djlint]
profile = "django"
# H006: Ignore because img sizes are often set with tailwind
ignore = "H006"
max_attribute_length = 0 # always wrap attributes
format_attribute_template_tags = true
format_js = true
format_css = true
[tool.djlint.js]
templating = "django"
# ==== mypy ====
[tool.mypy]
# Disallow dynamic typing
# disallow_any_unimported = True
# disallow_any_expr = True
# disallow_any_decorated = True
# disallow_any_explicit = True
# disallow_subclassing_any = True # --> These are very harsh. We can check them later again if needed.
disallow_any_generics = true
# Disallow untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
# disallow_untyped_decorators = True
# None and optional handling
no_implicit_optional = true
# Configuring warnings
warn_unused_ignores = true
warn_no_return = true
warn_return_any = false
warn_redundant_casts = true
# Misc things
strict_equality = true
# Config file
warn_unused_configs = true
# Ignore
follow_imports = "skip"
ignore_missing_imports = true
exclude = "migrations|settings.py|manage.py|venv|__init__.py"