Skip to content

Commit 4cbabc9

Browse files
[pre-commit.ci] pre-commit autoupdate (#8208)
updates: - [github.com/PyCQA/autoflake: v2.0.0 → v2.0.1](PyCQA/autoflake@v2.0.0...v2.0.1) - [github.com/charliermarsh/ruff-pre-commit: v0.0.241 → v0.0.243](astral-sh/ruff-pre-commit@v0.0.241...v0.0.243) - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) * Remove false positive fixed in ruff 0.243 Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 5bc4cd9 commit 4cbabc9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
doc/data/messages/m/missing-final-newline/bad.py|
1717
)$
1818
- repo: https://github.com/PyCQA/autoflake
19-
rev: v2.0.0
19+
rev: v2.0.1
2020
hooks:
2121
- id: autoflake
2222
exclude: &fixtures tests(/\w*)*/functional/|tests/input|doc/data/messages|tests(/\w*)*data/
@@ -27,7 +27,7 @@ repos:
2727
- --remove-duplicate-keys
2828
- --remove-unused-variables
2929
- repo: https://github.com/charliermarsh/ruff-pre-commit
30-
rev: "v0.0.241"
30+
rev: "v0.0.243"
3131
hooks:
3232
- id: ruff
3333
args: ["--fix"]
@@ -51,7 +51,7 @@ repos:
5151
- id: isort
5252
exclude: doc/data/messages/(r/reimported|w/wrong-import-order|u/ungrouped-imports|m/misplaced-future|m/multiple-imports)/bad.py
5353
- repo: https://github.com/psf/black
54-
rev: 22.12.0
54+
rev: 23.1.0
5555
hooks:
5656
- id: black
5757
args: [--safe, --quiet]

pylint/checkers/base/basic_error_checker.py

-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ def visit_unaryop(self, node: nodes.UnaryOp) -> None:
397397
def _check_nonlocal_without_binding(self, node: nodes.Nonlocal, name: str) -> None:
398398
current_scope = node.scope()
399399
while current_scope.parent is not None:
400-
401400
if not isinstance(current_scope, (nodes.ClassDef, nodes.FunctionDef)):
402401
self.add_message("nonlocal-without-binding", args=(name,), node=node)
403402
return

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ module = [
133133
[tool.ruff]
134134
select = ["E", "F", "B"]
135135
ignore = [
136-
"F841", # False positive for typing
137136
"B905", # Not enforced previousely
138137
]
139138
fixable = ["E", "F", "B"]

0 commit comments

Comments
 (0)