Previous commit add "core/tests/migrations". The linter could not pass on it because all the migration folders were excluded from the linter. We remove this exclusion, tests and migrations can now be linted and formatted automatically.
146 lines
3.6 KiB
TOML
146 lines
3.6 KiB
TOML
#
|
|
# impress package
|
|
#
|
|
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "impress"
|
|
version = "2.2.0"
|
|
authors = [{ "name" = "DINUM", "email" = "dev@mail.numerique.gouv.fr" }]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Framework :: Django",
|
|
"Framework :: Django :: 5",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Natural Language :: English",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.12",
|
|
]
|
|
description = "An application to print markdown to pdf from a set of managed templates."
|
|
keywords = ["Django", "Contacts", "Templates", "RBAC"]
|
|
license = { file = "LICENSE" }
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"boto3==1.36.7",
|
|
"Brotli==1.1.0",
|
|
"celery[redis]==5.4.0",
|
|
"django-configurations==2.5.1",
|
|
"django-cors-headers==4.6.0",
|
|
"django-countries==7.6.1",
|
|
"django-filter==24.3",
|
|
"django-parler==2.3",
|
|
"redis==5.2.1",
|
|
"django-redis==5.4.0",
|
|
"django-storages[s3]==1.14.4",
|
|
"django-timezone-field>=5.1",
|
|
"django==5.1.5",
|
|
"django-treebeard==4.7.1",
|
|
"djangorestframework==3.15.2",
|
|
"drf_spectacular==0.28.0",
|
|
"dockerflow==2024.4.2",
|
|
"easy_thumbnails==2.10",
|
|
"factory_boy==3.3.1",
|
|
"gunicorn==23.0.0",
|
|
"jsonschema==4.23.0",
|
|
"markdown==3.7",
|
|
"nested-multipart-parser==1.5.0",
|
|
"openai==1.60.2",
|
|
"psycopg[binary]==3.2.4",
|
|
"PyJWT==2.10.1",
|
|
"python-magic==0.4.27",
|
|
"requests==2.32.3",
|
|
"sentry-sdk==2.20.0",
|
|
"url-normalize==1.4.3",
|
|
"whitenoise==6.8.2",
|
|
"mozilla-django-oidc==4.0.1",
|
|
]
|
|
|
|
[project.urls]
|
|
"Bug Tracker" = "https://github.com/numerique-gouv/impress/issues/new"
|
|
"Changelog" = "https://github.com/numerique-gouv/impress/blob/main/CHANGELOG.md"
|
|
"Homepage" = "https://github.com/numerique-gouv/impress"
|
|
"Repository" = "https://github.com/numerique-gouv/impress"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"django-extensions==3.2.3",
|
|
"django-test-migrations==1.4.0",
|
|
"drf-spectacular-sidecar==2024.12.1",
|
|
"freezegun==1.5.1",
|
|
"ipdb==0.13.13",
|
|
"ipython==8.31.0",
|
|
"pyfakefs==5.7.4",
|
|
"pylint-django==2.6.1",
|
|
"pylint==3.3.4",
|
|
"pytest-cov==6.0.0",
|
|
"pytest-django==4.9.0",
|
|
"pytest==8.3.4",
|
|
"pytest-icdiff==0.9",
|
|
"pytest-xdist==3.6.1",
|
|
"responses==0.25.6",
|
|
"ruff==0.9.3",
|
|
"types-requests==2.32.0.20241016",
|
|
]
|
|
|
|
[tool.setuptools]
|
|
packages = { find = { where = ["."], exclude = ["tests"] } }
|
|
zip-safe = true
|
|
|
|
[tool.distutils.bdist_wheel]
|
|
universal = true
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
".git",
|
|
".venv",
|
|
"build",
|
|
"venv",
|
|
"__pycache__",
|
|
]
|
|
line-length = 88
|
|
|
|
|
|
[tool.ruff.lint]
|
|
ignore = ["DJ001", "PLR2004"]
|
|
select = [
|
|
"B", # flake8-bugbear
|
|
"BLE", # flake8-blind-except
|
|
"C4", # flake8-comprehensions
|
|
"DJ", # flake8-django
|
|
"I", # isort
|
|
"PLC", # pylint-convention
|
|
"PLE", # pylint-error
|
|
"PLR", # pylint-refactoring
|
|
"PLW", # pylint-warning
|
|
"RUF100", # Ruff unused-noqa
|
|
"RUF200", # Ruff check pyproject.toml
|
|
"S", # flake8-bandit
|
|
"SLF", # flake8-self
|
|
"T20", # flake8-print
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
section-order = ["future","standard-library","django","third-party","impress","first-party","local-folder"]
|
|
sections = { impress=["core"], django=["django"] }
|
|
extra-standard-library = ["tomllib"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"**/tests/*" = ["S", "SLF"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = [
|
|
"-v",
|
|
"--cov-report",
|
|
"term-missing",
|
|
# Allow test files to have the same name in different directories.
|
|
"--import-mode=importlib",
|
|
]
|
|
python_files = [
|
|
"test_*.py",
|
|
"tests.py",
|
|
]
|