diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c97ef8..9f3fc32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.6 + rev: 0.29.0 hooks: - id: check-github-workflows args: [ "--verbose" ] @@ -20,12 +20,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.1.3" + rev: "2.1.4" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.15.1"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.0" + rev: "v0.5.4" hooks: - id: ruff-format - id: ruff diff --git a/src/pyproject_api/_frontend.py b/src/pyproject_api/_frontend.py index 1c55990..8c86bc0 100644 --- a/src/pyproject_api/_frontend.py +++ b/src/pyproject_api/_frontend.py @@ -440,7 +440,7 @@ def build_editable( self._unexpected_response("build_editable", basename, str, out, err) return EditableResult(wheel_directory / basename, out, err) - def _unexpected_response( # noqa: PLR0913 + def _unexpected_response( self, cmd: str, got: Any, diff --git a/src/pyproject_api/_via_fresh_subprocess.py b/src/pyproject_api/_via_fresh_subprocess.py index c5bdd9a..86540f7 100644 --- a/src/pyproject_api/_via_fresh_subprocess.py +++ b/src/pyproject_api/_via_fresh_subprocess.py @@ -36,7 +36,7 @@ def out_err(self) -> tuple[str, str]: class SubprocessFrontend(Frontend): """A frontend that creates fresh subprocess at every call to communicate with the backend.""" - def __init__( # noqa: PLR0913 + def __init__( self, root: Path, backend_paths: tuple[Path, ...], diff --git a/tests/test_frontend.py b/tests/test_frontend.py index b1a1a49..780b717 100644 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -11,7 +11,7 @@ from pyproject_api._via_fresh_subprocess import SubprocessFrontend -@pytest.fixture() +@pytest.fixture def local_builder(tmp_path: Path) -> Callable[[str], Path]: def _f(content: str) -> Path: toml = '[build-system]\nrequires=[]\nbuild-backend = "build_tester"\nbackend-path=["."]'