Skip to content

Commit c758756

Browse files
Update pre-commit ruff legacy alias
1 parent 720820c commit c758756

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ repos:
1313
- id: check-json
1414
- id: check-yaml
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
# Ruff version.
17-
rev: v0.11.13
16+
rev: v0.12.2
1817
hooks:
1918
# Run the linter.
20-
- id: ruff
19+
- id: ruff-check
2120
args: [ --fix, "--show-fixes"]
2221
- id: ruff-format
2322
types_or: [python]

fsspec/tests/test_core.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,10 @@ def test_target_protocol_options(ftp_writable):
428428
host, port, username, password = ftp_writable
429429
data = {"afile": b"hello"}
430430
options = {"host": host, "port": port, "username": username, "password": password}
431-
with tempzip(data) as lfile, fsspec.open(
432-
"ftp:///archive.zip", "wb", **options
433-
) as f:
431+
with (
432+
tempzip(data) as lfile,
433+
fsspec.open("ftp:///archive.zip", "wb", **options) as f,
434+
):
434435
f.write(open(lfile, "rb").read())
435436
with fsspec.open(
436437
"zip://afile",

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ ignore = [
208208
# Fix these codes later
209209
"G004",
210210
"PERF203",
211+
"PLC0415",
211212
"UP007",
212213
"UP011",
213214
"UP015",
@@ -218,6 +219,7 @@ ignore = [
218219
"SIM114",
219220
"SIM115",
220221
"SIM117",
222+
"TC003",
221223
# https://github.com/astral-sh/ruff/issues/7871
222224
"UP038",
223225
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

0 commit comments

Comments
 (0)