mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-05 09:14:58 +03:00
- add apps/backend/pytest.ini (next to manage.py so it works inside the backend container); include tests.py in python_files so pytest collects the existing Django TestCase suites (was silently collecting nothing) - drop the duplicate pytest config from the root pyproject.toml - scripts/check.ps1 runs pytest + frontend unit tests + typechecks - document the canonical test commands (backend/frontend/e2e) in README Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
497 B
TOML
20 lines
497 B
TOML
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 100
|
|
src = ["apps/backend"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "DJ"]
|
|
ignore = ["DJ001"]
|
|
|
|
# pytest config lives in apps/backend/pytest.ini so it is also picked up inside
|
|
# the backend container (workdir /app/apps/backend, which does not mount this file).
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
plugins = ["mypy_django_plugin.main"]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.django-stubs]
|
|
django_settings_module = "hub_backend.settings"
|