Skip to content

Commit d60ba59

Browse files
committed
Bump pre-commit and fix known-standard-library
1 parent 6888fde commit d60ba59

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.pre-commit-config.yaml

+3-3
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.4.4"
20+
rev: "v0.4.5"
2121
hooks:
2222
- id: ruff
2323
args: ["--fix"]
@@ -141,8 +141,8 @@ repos:
141141
"types-pkg_resources==0.1.3",
142142
]
143143
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/
144-
- repo: https://github.com/pre-commit/mirrors-prettier
145-
rev: v4.0.0-alpha.8
144+
- repo: https://github.com/rbubley/mirrors-prettier
145+
rev: v3.2.5
146146
hooks:
147147
- id: prettier
148148
args: [--prose-wrap=always, --print-width=88]

pylint/checkers/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from __future__ import annotations
88

9+
import _string
910
import builtins
1011
import fnmatch
1112
import itertools
@@ -17,7 +18,6 @@
1718
from re import Match
1819
from typing import TYPE_CHECKING, Any, Callable, TypeVar
1920

20-
import _string
2121
import astroid.objects
2222
from astroid import TooManyLevelsError, nodes, util
2323
from astroid.context import InferenceContext

pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ int-import-graph=
485485

486486
# Force import order to recognize a module as part of the standard
487487
# compatibility libraries.
488-
known-standard-library=
488+
known-standard-library=_string
489489

490490
# Force import order to recognize a module as part of a third party library.
491491
known-third-party=enchant

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ markers = [
107107
[tool.isort]
108108
profile = "black"
109109
known_third_party = ["platformdirs", "astroid", "sphinx", "isort", "pytest", "mccabe", "six", "toml"]
110+
extra_standard_library = ["_string"]
110111
skip_glob = ["tests/functional/**", "tests/input/**", "tests/extensions/data/**", "tests/regrtest_data/**", "tests/data/**", "astroid/**", "venv/**"]
111112
src_paths = ["pylint"]
112113

0 commit comments

Comments
 (0)