From 734bf36e2f56f1171f9877360a2b94e50a36420f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:20:42 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.1 → v0.6.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.1...v0.6.2) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/nitpick/cli.py | 2 +- src/nitpick/plugins/__init__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 527ba4cc..51ab1710 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,7 +52,7 @@ repos: # - poetry.lock: auto-generated file exclude: (ideas/|resources/|tests/|poetry.lock) - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.1 + rev: v0.6.2 hooks: - id: ruff args: [--fix] @@ -86,7 +86,7 @@ repos: - id: prettier stages: [commit] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.11.2 hooks: - id: mypy # https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-show-error-codes diff --git a/src/nitpick/cli.py b/src/nitpick/cli.py index 9f4e22fe..44525c23 100644 --- a/src/nitpick/cli.py +++ b/src/nitpick/cli.py @@ -58,7 +58,7 @@ help=Flake8OptionEnum.OFFLINE.value, ) @click.version_option() -def nitpick_cli(project: Path | None = None, offline=False): # pylint: disable=unused-argument # noqa: ARG001 +def nitpick_cli(project: Path | None = None, offline=False): # pylint: disable=unused-argument """Enforce the same settings across multiple language-independent projects.""" diff --git a/src/nitpick/plugins/__init__.py b/src/nitpick/plugins/__init__.py index 2b8b4582..fa6ad461 100644 --- a/src/nitpick/plugins/__init__.py +++ b/src/nitpick/plugins/__init__.py @@ -30,7 +30,7 @@ def plugin_class() -> type[NitpickPlugin]: # type: ignore[empty-body] @hookspec -def can_handle(info: FileInfo) -> type[NitpickPlugin] | None: # pylint: disable=unused-argument # noqa: ARG001 +def can_handle(info: FileInfo) -> type[NitpickPlugin] | None: # pylint: disable=unused-argument """Return a valid :py:class:`nitpick.plugins.base.NitpickPlugin` instance or ``None``. :return: A plugin instance if your plugin handles this file info (path or any of its ``identify`` tags).