Skip to content

Commit 8c24b1e

Browse files
[pre-commit.ci] pre-commit autoupdate (#9448)
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]>
1 parent f499686 commit 8c24b1e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
doc/data/messages/m/missing-final-newline/bad/crlf.py
1818
)$
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: "v0.1.14"
20+
rev: "v0.2.2"
2121
hooks:
2222
- id: ruff
2323
args: ["--fix"]
@@ -39,7 +39,7 @@ repos:
3939
- id: isort
4040
exclude: doc/data/messages/
4141
- repo: https://github.com/psf/black
42-
rev: 24.1.1
42+
rev: 24.2.0
4343
hooks:
4444
- id: black
4545
args: [--safe, --quiet]

doc/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
sys.path.append(os.path.abspath(".."))
2828

2929
# pylint: disable=wrong-import-position
30-
from pylint import __version__ # noqa: E402
31-
from pylint.__pkginfo__ import numversion # noqa: E402
30+
from pylint import __version__
31+
from pylint.__pkginfo__ import numversion
3232

3333
# pylint: enable=wrong-import-position
3434

tests/test_pylint_runners.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import sys
1313
from collections.abc import Sequence
1414
from io import BufferedReader
15-
from typing import Any, NoReturn, Protocol
15+
from typing import Any, Protocol
1616
from unittest.mock import MagicMock, mock_open, patch
1717

1818
import pytest
@@ -24,7 +24,7 @@
2424

2525

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

2929

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

0 commit comments

Comments
 (0)