diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8228014 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[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"] diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..eca60e8 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +-r requirements.txt +pytest==8.4.2 +pytest-django==4.11.1 +ruff==0.14.0 diff --git a/requirements.txt b/requirements.txt index 5962630..aeff8ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,9 @@ -Django>=4.2,<5.0 -Pillow>=10.0.0 -python-slugify>=8.0.0 -Unidecode>=1.3.0 -bleach>=6.0.0 -requests>=2.31.0 -python-telegram-bot>=20.0 -vk-api>=11.9.9 -django-recaptcha>=3.0.0 -gunicorn>=21.0.0 -beautifulsoup4>=4.12.0 \ No newline at end of file +Django==4.2.27 +python-dotenv==1.2.1 +Pillow==12.0.0 +bleach==6.3.0 +beautifulsoup4==4.14.3 +requests==2.32.5 +Unidecode==1.4.0 +whitenoise==6.11.0 +gunicorn==23.0.0