[project]
name = "teilchensammler"
description = "Build a list of parts in a pile to help sorting and categorization"
readme = "README.md"
dynamic = [
  "version",
]
requires-python = ">= 3.12"
# dependencies are in folder .dependencies/*.in
authors = [
  { name = "bronsen", email = "kontakt+teilchensammler@nrrd.de" },
]

[tool.pytest.ini_options]
pythonpath = ["."]
python_files = [
  "test_*.py",
  "tests.py",
  "config/test.py",
]
addopts = [
  "--create-db",
  "--no-migrations",
  "--capture=sys",
]

[tool.coverage]
branch = true

[tool.coverage.report]
skip_covered = true
skip_empty = true
show_missing = true

[tool.coverage.run]
omit = [
  "*/migrations/*",
  "manage.py",
  "config/[aw]sgi.py",
]

[tool.coverage.xml]
output = "reports/coverage/coverage.xml"

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[tool.pdm.version]
source = "file"
path = "config/__init__.py"