Рефакторинг инфраструктуры и конфигурации проекта
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m52s
CI/CD Pipeline / Run Tests (push) Failing after 2m2s
CI/CD Pipeline / Build & Push Images (push) Has been skipped

- Перенесена структура 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:
2026-02-18 13:25:01 +01:00
parent 0f4af561de
commit d5d184537f
71 changed files with 1253 additions and 2318 deletions

View File

@@ -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)