From b561417c5a3578d5e571576d2dfe332fccc752a8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:42:01 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: v2.11.1 → v2.21.2](https://github.com/tox-dev/pyproject-fmt/compare/v2.11.1...v2.21.2) - [github.com/astral-sh/ruff-pre-commit: v0.14.10 → v0.15.14](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.14) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6afe3e6..0e72985 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,17 +7,17 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.11.1" + rev: "v2.21.2" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.15.14 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell additional_dependencies: ["tomli"] From be3659290f63fe1bc463393af8297c33da031a3a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:42:12 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 62 ++++++++++++++++++++++---------------------------- 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e081ce5..f852c8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,8 +41,8 @@ urls.Issues = "https://github.com/iterative/pytest-test-utils/issues" urls.Source = "https://github.com/iterative/pytest-test-utils" entry-points.pytest11.pytest_test_utils = "pytest_test_utils.pytest_plugin" -[tool.setuptools.package-data] -pytest_test_utils = [ +[tool.setuptools] +package-data.pytest_test_utils = [ "py.typed", ] @@ -50,7 +50,6 @@ pytest_test_utils = [ [tool.ruff] show-fixes = true - output-format = "full" lint.extend-select = [ "B", @@ -66,34 +65,6 @@ lint.ignore = [ [tool.codespell] ignore-words-list = "cachable" -[tool.pytest.ini_options] -testpaths = [ - "tests.py", -] - -[tool.coverage.run] -branch = true -source = [ - "pytest_test_utils", -] - -[tool.coverage.paths] -source = [ - "dvc", -] - -[tool.coverage.report] -exclude_lines = [ - "if __name__ == .__main__.:", - "if TYPE_CHECKING:", - "if typing.TYPE_CHECKING:", - "@overload", - "pragma: no cover", - "raise AssertionError", - "raise NotImplementedError", -] -show_missing = true - [tool.mypy] # Error output show_column_numbers = true @@ -110,9 +81,30 @@ files = [ "pytest_test_utils", "tests.py", ] - -[[tool.mypy.overrides]] -module = [ +overrides = [ { module = [ "tests", +], strict_equality = false } ] + +[tool.pytest] +ini_options.testpaths = [ + "tests.py", +] + +[tool.coverage] +run.branch = true +run.source = [ + "pytest_test_utils", +] +paths.source = [ + "dvc", +] +report.exclude_lines = [ + "@overload", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", + "if typing.TYPE_CHECKING:", + "pragma: no cover", + "raise AssertionError", + "raise NotImplementedError", ] -strict_equality = false +report.show_missing = true