Files
cbwebreader/pyproject.toml

74 lines
1.8 KiB
TOML

[project]
name = "cbwebreader"
version = "2.0.0"
description = "CBR/Z Web Reader"
readme = "README.md"
requires-python = ">=3.14"
authors = ["ajurna <ajurna@gmail.com>"]
license = "Creative Commons Attribution-ShareAlike 4.0 International License"
dependencies = [
"dj-database-url>=3.1.2",
"django>=6.1.2",
"django-boost>=2.2",
"django-cors-headers>=4.9.0",
"django-csp>=4.0",
"django-extensions>=4.1",
"django-filter>=26.2",
"django-imagekit>=6.1.1",
"django-permissions-policy>=4.34.0",
"django-silk>=5.6.0",
"django-webpack-loader>=3.2.4",
"djangorestframework>=3.18.3",
"djangorestframework-simplejwt>=5.5.1",
"drf-yasg>=1.21.18",
"gunicorn>=26.2.0",
"loguru>=0.7.3",
"pillow>=12.3.0",
"psycopg2-binary>=2.9.13",
"pymupdf>=1.28.2",
"python-dotenv>=1.2.4",
"rarfile>=4.5",
]
[dependency-groups]
dev = [
"coverage>=7.13.5",
"ipython>=9.13.0",
"mypy>=2",
"pre-commit>=4.6",
"pylint>=4.0.5",
"pylint-django>=2.7.0",
"pyopenssl>=26.2.0",
"pytest>=8.4",
"pytest-django>=4.8",
"ruff>=0.17.0",
"werkzeug>=3.1.8",
]
[tool.ruff]
target-version = "py314"
line-length = 120
extend-exclude = [
"*/migrations/*",
"cbreader/settings",
"frontend",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "ANN", "B", "C4", "SIM", "UP"]
# These were ignored by the previous flake8-annotations setup (ANN001 is the
# modern name for the old ANN101).
ignore = ["ANN001", "ANN002", "ANN003"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "cbreader.settings.test"
python_files = ["test_*.py"]
filterwarnings = [
# drf_yasg still uses jsonschema.RefResolver, which is deprecated upstream.
"ignore::DeprecationWarning:swagger_spec_validator",
]