Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#8208)
Browse files Browse the repository at this point in the history
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 <pierre.sassoulas@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and Pierre-Sassoulas committed Feb 7, 2023
1 parent 5bc4cd9 commit 4cbabc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
doc/data/messages/m/missing-final-newline/bad.py|
)$
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
rev: v2.0.1
hooks:
- id: autoflake
exclude: &fixtures tests(/\w*)*/functional/|tests/input|doc/data/messages|tests(/\w*)*data/
Expand All @@ -27,7 +27,7 @@ repos:
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.241"
rev: "v0.0.243"
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -51,7 +51,7 @@ repos:
- id: isort
exclude: doc/data/messages/(r/reimported|w/wrong-import-order|u/ungrouped-imports|m/misplaced-future|m/multiple-imports)/bad.py
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
1 change: 0 additions & 1 deletion pylint/checkers/base/basic_error_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ def visit_unaryop(self, node: nodes.UnaryOp) -> None:
def _check_nonlocal_without_binding(self, node: nodes.Nonlocal, name: str) -> None:
current_scope = node.scope()
while current_scope.parent is not None:

if not isinstance(current_scope, (nodes.ClassDef, nodes.FunctionDef)):
self.add_message("nonlocal-without-binding", args=(name,), node=node)
return
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ module = [
[tool.ruff]
select = ["E", "F", "B"]
ignore = [
"F841", # False positive for typing
"B905", # Not enforced previousely
]
fixable = ["E", "F", "B"]
Expand Down

0 comments on commit 4cbabc9

Please sign in to comment.