From 1c4882c70cb4e937bd7eb7b28a8d9f6252c13fa0 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Fri, 7 Aug 2026 10:21:07 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20correct=20Pyrefly=20setti?= =?UTF-8?q?ngs=20to=20actually=20run=20in=20our=20projects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/pyproject.toml.jinja | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 3ef8e0f..3ba85b3 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -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"