mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
17fa459dc3
* Fix inconsistent line length and move config to pyproject.toml Fix #2720 * Fix running tox with AUTOFIXABLE_STYLES * Adjust some styles * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adjust more styles * Split isort and flake8 tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
30 lines
432 B
TOML
30 lines
432 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 = ['py311']
|
|
|
|
|
|
# ==== isort ====
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 119
|
|
known_first_party = [
|
|
"tests",
|
|
"scripts",
|
|
"hooks",
|
|
]
|