53 lines
1.4 KiB
TOML
53 lines
1.4 KiB
TOML
[project]
|
|
name = "mailadmin"
|
|
version = "0.1.0"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"django==4.2.*",
|
|
"django-auth-ldap==5.*",
|
|
"django-bootstrap4==25.1.*",
|
|
"django-extensions==4.*",
|
|
"django-filter==25.*",
|
|
"djangorestframework==3.16.*",
|
|
"fabric==3.*",
|
|
"gunicorn==20.0.*",
|
|
"markdown==3.*",
|
|
"mysqlclient==2.*",
|
|
"requests==2.*",
|
|
"sentry-sdk==1.*",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.3.5",
|
|
"pytest-django>=4.11.1",
|
|
"ruff>=0.11.12",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["ALL"]
|
|
ignore = [
|
|
"D", # pydocstyle: Allow undocumented code
|
|
"ANN", # flake8-annotations: Allow untyped code
|
|
"TD", "FIX", # Allow TODOs and FIXMEs
|
|
"FBT002", # Allow boolean args
|
|
"G004", # Allow logging using f-string
|
|
"EM101", "EM102", # Allow string in exceptions (prioritice code readability vs exception time readability)
|
|
"TRY003", # Allow long exception messages
|
|
"E501", # Allow long lines
|
|
"COM812", "ISC001", # Avoid conflicting with ruff formatter
|
|
"RUF012" # FIXME: Fixy fix
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
# Testing code can deviate a bit more
|
|
"**/tests.py" = ["S101", "S106", "PLR2004"]
|
|
|
|
[tool.pytest.ini_options]
|
|
DJANGO_SETTINGS_MODULE = "mailadminsite.settings"
|