Skip to content

Commit

Permalink
pre-commit autoupdate (#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Jan 16, 2025
1 parent 30af5e1 commit 216885a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.9
rev: v0.9.2
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 3 additions & 3 deletions fsspec/implementations/dbfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ def __init__(
if block_size is None or block_size == "default":
block_size = self.DEFAULT_BLOCK_SIZE

assert (
block_size == self.DEFAULT_BLOCK_SIZE
), f"Only the default block size is allowed, not {block_size}"
assert block_size == self.DEFAULT_BLOCK_SIZE, (
f"Only the default block size is allowed, not {block_size}"
)

super().__init__(
fs,
Expand Down
4 changes: 2 additions & 2 deletions fsspec/implementations/tests/test_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_filesystem_direct(recipe, tmpdir):
Here: `LocalFileSystem`.
"""

filename = os.path.join(tmpdir, f'temp{recipe["suffix"]}')
filename = os.path.join(tmpdir, f"temp{recipe['suffix']}")

fs = fsspec.filesystem("file")
f = OpenFile(fs, filename, mode="wb")
Expand Down Expand Up @@ -132,7 +132,7 @@ def test_filesystem_cached(recipe, tmpdir):
Here: `TarFileSystem` over `WholeFileCacheFileSystem` over `LocalFileSystem`.
"""

filename = os.path.join(tmpdir, f'temp{recipe["suffix"]}')
filename = os.path.join(tmpdir, f"temp{recipe['suffix']}")

# Create a filesystem from test fixture.
fs = fsspec.filesystem("file")
Expand Down
6 changes: 3 additions & 3 deletions fsspec/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ def register_implementation(name, cls, clobber=False, errtxt=None):
"zip": {"class": "fsspec.implementations.zip.ZipFileSystem"},
}

assert list(known_implementations) == sorted(
known_implementations
), "Not in alphabetical order"
assert list(known_implementations) == sorted(known_implementations), (
"Not in alphabetical order"
)


def get_filesystem_class(protocol):
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@ ignore = [
"UP011",
"UP015",
"UP018",
# deprecated
"UP027",
"SIM102",
"SIM105",
"SIM108",
Expand All @@ -238,8 +236,6 @@ ignore = [
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 216885a

Please sign in to comment.