Skip to content

Commit

Permalink
Merge pull request #65 from cclauss/pre-commit-autoupdate-2024-11-25
Browse files Browse the repository at this point in the history
pre-commit autoupdate && pre-commit run --all-files
  • Loading branch information
Saransh-cpp authored Nov 25, 2024
2 parents 5acfa2d + 9bfee4f commit 0e2b777
Show file tree
Hide file tree
Showing 3 changed files with 5 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 @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.7"
rev: "v0.8.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -49,7 +49,7 @@ repos:
exclude: assets/js/webapp\.js

- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
rev: 1.19.1
hooks:
- id: blacken-docs
args: ["-E"]
Expand Down
2 changes: 1 addition & 1 deletion removestar/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def main(): # noqa: PLR0912, C901
and importlib.util.find_spec("nbconvert") is not None
and importlib.util.find_spec("nbformat") is not None
):
tmp_file = tempfile.NamedTemporaryFile()
tmp_file = tempfile.NamedTemporaryFile() # noqa: SIM115
tmp_path = tmp_file.name

with open(file) as f:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_removestar_nb.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def prepare_nb(output_path="_test.ipynb"):
with open(output_path, "w") as f:
nbf.write(nb, f)

tmp_file = tempfile.NamedTemporaryFile()
tmp_file = tempfile.NamedTemporaryFile() # noqa: SIM115
tmp_path = tmp_file.name

with open(output_path) as f:
Expand Down

0 comments on commit 0e2b777

Please sign in to comment.