Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#9448)
Browse files Browse the repository at this point in the history
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.2](astral-sh/ruff-pre-commit@v0.1.14...v0.2.2)
- [github.com/psf/black: 24.1.1 → 24.2.0](psf/black@24.1.1...24.2.0)

Co-authored-by: Pierre Sassoulas <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Pierre-Sassoulas authored Feb 23, 2024
1 parent f499686 commit 8c24b1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
doc/data/messages/m/missing-final-newline/bad/crlf.py
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.14"
rev: "v0.2.2"
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -39,7 +39,7 @@ repos:
- id: isort
exclude: doc/data/messages/
- repo: https://github.com/psf/black
rev: 24.1.1
rev: 24.2.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
sys.path.append(os.path.abspath(".."))

# pylint: disable=wrong-import-position
from pylint import __version__ # noqa: E402
from pylint.__pkginfo__ import numversion # noqa: E402
from pylint import __version__
from pylint.__pkginfo__ import numversion

# pylint: enable=wrong-import-position

Expand Down
4 changes: 2 additions & 2 deletions tests/test_pylint_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import sys
from collections.abc import Sequence
from io import BufferedReader
from typing import Any, NoReturn, Protocol
from typing import Any, Protocol
from unittest.mock import MagicMock, mock_open, patch

import pytest
Expand All @@ -24,7 +24,7 @@


class _RunCallable(Protocol): # pylint: disable=too-few-public-methods
def __call__(self, argv: Sequence[str] | None = None) -> NoReturn | None: ...
def __call__(self, argv: Sequence[str] | None = None) -> None: ...


@pytest.mark.parametrize("runner", [run_pylint, run_pyreverse, run_symilar])
Expand Down

0 comments on commit 8c24b1e

Please sign in to comment.