From 169bf115e2c30c2ff031bdf50057bede67960211 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:30:02 -0500 Subject: [PATCH] pre-commit: bump repositories (#213) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * pre-commit: bump repositories updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.1 → v0.7.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.1...v0.7.3) - [github.com/henryiii/validate-pyproject-schema-store: 2024.10.21 → 2024.11.11](https://github.com/henryiii/validate-pyproject-schema-store/compare/2024.10.21...2024.11.11) * tests: fix coverage context Signed-off-by: Henry Schreiner --------- Signed-off-by: Henry Schreiner Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner --- .pre-commit-config.yaml | 4 ++-- noxfile.py | 1 + pyproject.toml | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) 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:",