Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit manual update (ruff 0.5.0) (codespell-proj…
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Jul 2, 2024
1 parent c4f575c commit ac5c505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repos:
- -d
- "{extends: relaxed, rules: {line-length: {max: 90}}}"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
- id: ruff-format
Expand Down
10 changes: 5 additions & 5 deletions codespell_lib/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def run_codespell(
) -> int:
"""Run codespell."""
args = tuple(str(arg) for arg in args)
proc = subprocess.run(
["codespell", "--count", *args], # noqa: S603, S607
proc = subprocess.run( # noqa: S603
["codespell", "--count", *args], # noqa: S607
cwd=cwd,
capture_output=True,
encoding="utf-8",
Expand Down Expand Up @@ -241,7 +241,7 @@ def test_interactivity(
with mock.patch.object(sys, "argv", ("-i", "-1", fname)):
with pytest.raises(SystemExit) as e:
cs.main("-i", "-1", fname)
assert e.type == SystemExit
assert e.type is SystemExit
assert e.value.code != 0
with FakeStdin("y\n"):
assert cs.main("-i", "3", fname) == 1
Expand Down Expand Up @@ -1344,8 +1344,8 @@ def run_codespell_stdin(
cwd: Optional[Path] = None,
) -> int:
"""Run codespell in stdin mode and return number of lines in output."""
proc = subprocess.run(
["codespell", *args, "-"], # noqa: S603, S607
proc = subprocess.run( # noqa: S603
["codespell", *args, "-"], # noqa: S607
cwd=cwd,
input=text,
capture_output=True,
Expand Down

0 comments on commit ac5c505

Please sign in to comment.