Skip to content

[pre-commit.ci] pre-commit manual update (ruff 0.5.0) #3481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading