Рефакторинг инфраструктуры и конфигурации проекта
- Перенесена структура Django-конфига в src/core и src/settings - Унифицирована Docker-сборка и docker-compose для dev/prod - Добавлены startup-checks (DB/Redis) и обновлены env-шаблоны - Расширена OpenAPI-документация и ответы API - Удалены устаревшие deploy/requirements/служебные скрипты - Обновлены CI/CD, README и тесты
This commit is contained in:
@@ -104,11 +104,14 @@ build-backend = "setuptools.build_meta"
|
||||
[tool.setuptools]
|
||||
packages = ["src"]
|
||||
|
||||
[tool.uv]
|
||||
package = false
|
||||
|
||||
# ==================================================================================
|
||||
# PYTEST CONFIGURATION
|
||||
# ==================================================================================
|
||||
[tool.pytest.ini_options]
|
||||
DJANGO_SETTINGS_MODULE = "config.settings.test"
|
||||
DJANGO_SETTINGS_MODULE = "settings.test"
|
||||
django_find_project = false
|
||||
testpaths = ["tests"]
|
||||
addopts = [
|
||||
@@ -123,6 +126,7 @@ addopts = [
|
||||
|
||||
markers = [
|
||||
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
||||
"e2e: marks end-to-end tests",
|
||||
"integration: marks tests as integration tests",
|
||||
"unit: marks tests as unit tests",
|
||||
"models: marks tests for models",
|
||||
@@ -268,11 +272,10 @@ max-complexity = 10
|
||||
# Ignore `E402` (import violations) in all `__init__.py` files
|
||||
"__init__.py" = ["E402"]
|
||||
# Ignore star imports and related errors in settings
|
||||
"src/config/settings/*" = ["F403", "F405", "E402"]
|
||||
# Ignore star imports in test runner files
|
||||
"check_tests.py" = ["F403"]
|
||||
"run_tests.py" = ["F403"]
|
||||
"run_tests_simple.py" = ["F403"]
|
||||
"src/settings/*" = ["F403", "F405", "E402"]
|
||||
# Ignore expected dev/test hardcoded values in non-production settings
|
||||
"src/settings/dev.py" = ["S105"]
|
||||
"src/settings/test.py" = ["S105"]
|
||||
# Ignore complexity issues in tests
|
||||
"tests/*" = ["C901", "S101"]
|
||||
"**/test_*" = ["C901", "S101"]
|
||||
@@ -384,7 +387,7 @@ module = "tests.*"
|
||||
disallow_untyped_defs = false
|
||||
|
||||
[tool.django-stubs]
|
||||
django_settings_module = "config.settings.development"
|
||||
django_settings_module = "settings.dev"
|
||||
|
||||
# ==================================================================================
|
||||
# BANDIT CONFIGURATION (Security)
|
||||
|
||||
Reference in New Issue
Block a user