warchron_app/pyproject.toml
2026-02-11 13:47:34 +01:00

71 lines
1.2 KiB
TOML

[project]
name = "warchron"
dynamic = ["version"]
description = "A simple local app to track players' campaigns for tabletop wargames."
requires-python = ">=3.12"
[tool.setuptools_scm]
write_to = "src/warchron/_version.py"
fallback_version = "0.0.0"
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
# === BLACK CONFIGURATION (FORMATTER) ===
[tool.black]
line-length = 88
target-version = ['py312']
include = '\.pyi?$' # File types to format (.py and .pyi)
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.venv
| venv
| build
| dist
)/
'''
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503"]
exclude = [
".git",
"__pycache__",
".venv",
"build",
"dist",
"src/warchron/view/ui"
]
[tool.mypy]
python_version = "3.12"
mypy_path = "src"
strict = true
explicit_package_bases = true
disallow_untyped_decorators = false
exclude = [
".git",
"__pycache__",
".venv",
"build",
"dist",
"src/warchron/view/ui"
]
[[tool.mypy.overrides]]
module = "PyQt6.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "warchron.view.ui.*"
ignore_errors = true