Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2097)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](astral-sh/ruff-pre-commit@v0.0.259...v0.0.260)
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)

Co-authored-by: Pierre Sassoulas <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Pierre-Sassoulas authored Apr 4, 2023
1 parent be6b61f commit b4bb2d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: end-of-file-fixer
exclude: tests/testdata
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.259"
rev: "v0.0.260"
hooks:
- id: ruff
exclude: tests/testdata
Expand All @@ -34,7 +34,7 @@ repos:
- id: black-disable-checker
exclude: tests/test_nodes_lineno.py
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
2 changes: 1 addition & 1 deletion astroid/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, wrapped):
stacklevel=2,
)
try:
wrapped.__name__
wrapped.__name__ # noqa[B018]
except AttributeError as exc:
raise TypeError(f"{wrapped} must have a __name__ attribute") from exc
self.wrapped = wrapped
Expand Down
2 changes: 1 addition & 1 deletion tests/test_regrtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def run():
classes = astroid.nodes_of_class(nodes.ClassDef)
for klass in classes:
# triggers the _is_metaclass call
klass.type # pylint: disable=pointless-statement
klass.type # pylint: disable=pointless-statement # noqa[B018]

def test_decorator_callchain_issue42(self) -> None:
builder = AstroidBuilder()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_scoped_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def test_file_stream_api(self) -> None:
file_build = builder.AstroidBuilder().file_build(path, "all")
with self.assertRaises(AttributeError):
# pylint: disable=pointless-statement, no-member
file_build.file_stream
file_build.file_stream # noqa[B018]

def test_stream_api(self) -> None:
path = resources.find("data/all.py")
Expand Down

0 comments on commit b4bb2d9

Please sign in to comment.