mirror of
https://github.com/EDeev/deev.space.git
synced 2026-10-07 20:49:59 +03:00
- добавлены python-dotenv (без него падал settings.py) и whitenoise; - убраны неиспользуемые python-telegram-bot, vk-api, django-recaptcha, python-slugify; - версии закреплены по рабочему окружению продакшена; - requirements-dev.txt (pytest, pytest-django, ruff) и настройки ruff/pytest в pyproject.toml.
20 lines
629 B
TOML
20 lines
629 B
TOML
[tool.ruff]
|
|
target-version = "py310"
|
|
line-length = 120
|
|
extend-exclude = ["main/migrations"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "B", "S", "UP", "I"]
|
|
ignore = [
|
|
"E501", # длинные строки — в шаблонах сообщений и help_text
|
|
"S308", # mark_safe — проверяется вручную
|
|
"UP031", # %-форматирование в логах — осознанно
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"main/tests/*" = ["S101", "S106"]
|
|
"main/management/commands/*" = ["S311"]
|
|
|
|
[tool.pytest.ini_options]
|
|
DJANGO_SETTINGS_MODULE = "dspace.settings"
|
|
python_files = ["test_*.py"]
|