base_django/pyproject.toml

54 lines
1014 B
TOML

[tool.black]
line-length = 121
target-version = ['py310']
include = '\.py$'
exclude = '''
/(
\.bzr
| \.direnv
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.pants\.d
| \.svn
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| node_modules
| venv
| \.idea
| dockerdata
| static
| \.git
| migrations
)/
'''
[tool.isort]
# these are black-compatible settings
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 121
skip = "dockerdata,.idea,static,.venv/,migrations"
filter_files = true
[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
ignore_missing_imports = true
strict = true
[tool.django-stubs]
django_settings_module = "app.settings"
[tool.pytest.ini_options]
python_files = ["tests.py", "test_*.py", "*_tests.py"]
addopts = "--ds=app.settings --reuse-db --diff-width=121 -n 6 --dist=loadscope --durations=5 --disable-warnings --cov=."