chore(settings): 建立第一阶段分环境工程基线
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user