31 lines
675 B
TOML
31 lines
675 B
TOML
[tool.pytest.ini_options]
|
|
DJANGO_SETTINGS_MODULE = "JobRadar.settings.test"
|
|
python_files = ["test_*.py", "tests.py"]
|
|
testpaths = ["."]
|
|
addopts = "--strict-markers --tb=short"
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
source = ["."]
|
|
omit = ["*/migrations/*", "*/tests/*", "manage.py"]
|
|
|
|
[tool.coverage.report]
|
|
show_missing = true
|
|
skip_covered = true
|
|
|
|
[tool.ruff]
|
|
target-version = "py313"
|
|
line-length = 100
|
|
exclude = ["*/migrations/*"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "B", "UP", "DJ"]
|
|
ignore = [
|
|
# Django settings 使用通配导入组合环境配置,变量由框架按名称读取。
|
|
"F403",
|
|
"F405",
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["JobRadar"]
|