42 lines
1.1 KiB
TOML
42 lines
1.1 KiB
TOML
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#
|
|
# Projektmetadaten und Werkzeugeinstellungen.
|
|
# Die Laufzeit-Abhängigkeiten stehen in requirements.in und werden mit
|
|
# scripts/lock.sh in requirements.lock (mit Hashes) festgeschrieben.
|
|
|
|
[project]
|
|
name = "surveybox"
|
|
version = "1.0.0"
|
|
description = "Formulare und Abstimmungen, selbst gehostet"
|
|
readme = "README.md"
|
|
license = "AGPL-3.0-or-later"
|
|
requires-python = ">=3.13"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py313"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "I", "B", "UP", "S", "SIM", "RUF"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*" = ["S101", "S105", "S106", "S603", "S607"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.13"
|
|
strict = true
|
|
packages = ["surveybox"]
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["babel.*", "reportlab.*"]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
# Projektverzeichnis in den Suchpfad, damit "import surveybox" auch mit dem
|
|
# Befehl "pytest" (ohne "python -m") funktioniert, etwa in der CI
|
|
pythonpath = ["."]
|
|
markers = [
|
|
"db: braucht eine PostgreSQL-Testdatenbank (SURVEYBOX_TEST_DB=1)",
|
|
]
|