Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,22 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pytest.ini_options]
# - A short traceback (tb) mode to make it easier to view
# - Use the `src/` package (importlib)
# - Use code coverage on the `src/` package
# - If tests fail, do not generate coverage report
# - Create the coverage report in XML (for badge), terminal, and HTML
# - Trigger failure if below 90% code coverage
# - A short traceback (tb) mode to make it easier to view.
# - Use the `src/` package (importlib).
# - Use code coverage on the `src/` package.
# - If tests fail, do not generate coverage report.
# - Create the coverage report in XML (for badge), terminal, and HTML.
# - Trigger failure if below 90% code coverage.
addopts = "--tb=short --import-mode=importlib --cov=src --no-cov-on-fail --cov-report=term --cov-report=xml --cov-report=html --cov-fail-under=90"

[tool.pyrefly]
project-includes = ["src/"]
project-includes = ["src/", "tests/"]
min-severity = "warn"
python-version = "3.12.0"
preset = "strict"
python-interpreter-path = ".venv/bin/python"
# Use inline `# type: ignore` comments, which can be useful.
permissive-ignores = true

[tool.ruff]
extend = ".config/ruff.toml"
Loading