36 lines
683 B
TOML
36 lines
683 B
TOML
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 120
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "W", "F", "I"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["app"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = "--cov=app --cov-report=term-missing --cov-report=html"
|
|
|
|
[tool.coverage.run]
|
|
omit = [
|
|
"tests/*",
|
|
"migrations/*",
|
|
"*/__pycache__/*",
|
|
"app/conftest.py",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"if __name__ == .__main__.:",
|
|
"pass",
|
|
"raise NotImplementedError",
|
|
"except ImportError:",
|
|
]
|