Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#676)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.1 → v0.6.2](astral-sh/ruff-pre-commit@v0.6.1...v0.6.2)
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@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>
  • Loading branch information
pre-commit-ci[bot] authored Aug 27, 2024
1 parent 11c112b commit 734bf36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""


Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 734bf36

Please sign in to comment.