chore(settings): 建立第一阶段分环境工程基线

This commit is contained in:
bruce
2026-09-01 14:35:38 +08:00
parent 3db6d83e04
commit e335b0de95
16 changed files with 344 additions and 126 deletions
+30
View File
@@ -0,0 +1,30 @@
[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"]