diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93a117c..fb79402 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.1" + rev: "v0.7.3" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -63,7 +63,7 @@ repos: - id: shellcheck - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.10.21 + rev: 2024.11.11 hooks: - id: validate-pyproject diff --git a/noxfile.py b/noxfile.py index 7087c29..c9e9e0e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -44,6 +44,7 @@ def test(session: nox.Session) -> None: f"--cov-report=html:{htmlcov_output}", f"--cov-report=xml:{xmlcov_output}", "--cov-report=term-missing", + "--cov-context=test", "tests/", *session.posargs, ) diff --git a/pyproject.toml b/pyproject.toml index 2651159..51e50e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,7 +107,6 @@ ignore = [ docstring-code-format = true [tool.coverage] -run.dynamic_context = "test_function" html.show_contexts = true report.exclude_also = [ "if typing.TYPE_CHECKING:",