mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
51 lines
852 B
TOML
51 lines
852 B
TOML
# ==== pytest ====
|
|
[tool.pytest.ini_options]
|
|
addopts = "-v --tb=short"
|
|
norecursedirs = [
|
|
".tox",
|
|
".git",
|
|
"*/migrations/*",
|
|
"*/static/*",
|
|
"docs",
|
|
"venv",
|
|
"*/{{cookiecutter.project_slug}}/*",
|
|
]
|
|
|
|
|
|
# ==== black ====
|
|
[tool.black]
|
|
line-length = 119
|
|
target-version = ['py312']
|
|
|
|
|
|
# ==== isort ====
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 119
|
|
known_first_party = [
|
|
"tests",
|
|
"scripts",
|
|
"hooks",
|
|
]
|
|
|
|
|
|
# ==== djLint ====
|
|
[tool.djlint]
|
|
blank_line_after_tag = "load,extends"
|
|
close_void_tags = true
|
|
format_css = true
|
|
format_js = true
|
|
# TODO: remove T002 when fixed https://github.com/Riverside-Healthcare/djLint/issues/687
|
|
ignore = "H006,H030,H031,T002,T028"
|
|
ignore_blocks = "raw"
|
|
include = "H017,H035"
|
|
indent = 2
|
|
max_line_length = 119
|
|
profile = "jinja"
|
|
|
|
[tool.djlint.css]
|
|
indent_size = 2
|
|
|
|
[tool.djlint.js]
|
|
indent_size = 2
|