-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
67 lines (60 loc) · 1.58 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
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| venv
)/
# ignore auto-generated migrations, no one ever saves those manually
| migrations/.*.py
| migrations/.*_initial.py
| migrations/.*_auto_.*.py
)
'''
[tool.isort]
profile = "black"
line_length = 88
known_django = "django"
known_first_party = [
"chat",
"librarian",
"otto",
"laws",
"case_prep",
"template_wizard",
"text_extractor"
]
sections = [
"FUTURE",
"STDLIB",
"DJANGO",
"THIRDPARTY",
"OTTO",
"FIRSTPARTY",
"LOCALFOLDER"
]
skip_glob=['*/migrations/*.py']
[tool.djlint]
indent=2
profile="django"
preserve_blank_lines=true
# Jinja linting is opinionated so we turned off some annoying errors.
# We're not actively linting templates, but if errors get in the way
# of you noticing important issues like unclosed tags
# feel free to add and document those error codes below
ignore="H021,H008,T002,T003,T028,T032,H017,H023,H030,H031"
#T002 -> Double quotes should be used in tags
#T003 -> endblocks must have names
#T028 -> Consider using spaceless tags inside attribute values. {%- if/for -%}
#T032 -> extra whitespace
#H008 -> attrs should be in double quotes
#H021 -> no inline styles
#H017 -> unpaired tags should be self-closing (should probably disable this)
#H023 -> do not sure entity references (e.g. «)
#H030 -> Consider adding a meta description
#H031 -> Consider adding meta keywords