fournee/pyproject.toml

73 lines
1.3 KiB
TOML

[tool.ruff]
extend-exclude = [
"assets",
"var",
"fournée/migrations/*.py",
]
line-length = 80
[tool.ruff.lint]
# E: pycodestyle errors
# F: Pyflakes
# I: isort
# T20: flake8-print
# BLE: flake8-blind-except
# C4: flake8-comprehensions
select = ["E", "F", "I", "T20", "BLE", "C4"]
[tool.ruff.lint.isort]
known-first-party = ["fournée"]
section-order = [
"future",
"standard-library",
"django",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
django = ["django"]
[tool.pytest.ini_options]
testpaths = ["fournée"]
markers = ["wip: mark a test as a work in progress"]
DJANGO_SETTINGS_MODULE = "fournée.settings.test"
[tool.coverage.run]
branch = true
source = ["fournée"]
omit = [
"fournée/migrations/*",
"fournée/settings/*",
"fournée/tests/*",
"fournée/wsgi.py",
]
[tool.coverage.report]
exclude_lines = [
"# pragma: no cover",
"raise NotImplementedError",
]
show_missing = true
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.9"
django = "~4.2.8"
django-environ = "~0.11.2"
django-nested-admin = "~4.0.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
django-debug-toolbar = "^4.1.0"
django-extensions = "^3.2.3"
pytest = "^7.4.0"
pytest-django = "^4.8.0"
pytest-cov = "^4.1.0"
ruff = "~0.3.7"