Skip to content

Commit 0e2b777

Browse files
authored
Merge pull request #65 from cclauss/pre-commit-autoupdate-2024-11-25
pre-commit autoupdate && pre-commit run --all-files
2 parents 5acfa2d + 9bfee4f commit 0e2b777

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.6.0
7+
rev: v5.0.0
88
hooks:
99
- id: check-added-large-files
1010
- id: check-case-conflict
@@ -19,7 +19,7 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.5.7"
22+
rev: "v0.8.0"
2323
hooks:
2424
- id: ruff
2525
args: ["--fix", "--show-fixes"]
@@ -49,7 +49,7 @@ repos:
4949
exclude: assets/js/webapp\.js
5050

5151
- repo: https://github.com/asottile/blacken-docs
52-
rev: 1.18.0
52+
rev: 1.19.1
5353
hooks:
5454
- id: blacken-docs
5555
args: ["-E"]

removestar/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def main(): # noqa: PLR0912, C901
155155
and importlib.util.find_spec("nbconvert") is not None
156156
and importlib.util.find_spec("nbformat") is not None
157157
):
158-
tmp_file = tempfile.NamedTemporaryFile()
158+
tmp_file = tempfile.NamedTemporaryFile() # noqa: SIM115
159159
tmp_path = tmp_file.name
160160

161161
with open(file) as f:

tests/test_removestar_nb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def prepare_nb(output_path="_test.ipynb"):
3131
with open(output_path, "w") as f:
3232
nbf.write(nb, f)
3333

34-
tmp_file = tempfile.NamedTemporaryFile()
34+
tmp_file = tempfile.NamedTemporaryFile() # noqa: SIM115
3535
tmp_path = tmp_file.name
3636

3737
with open(output_path) as f:

0 commit comments

Comments
 (0)