Skip to content

Commit d694141

Browse files
authored
chore: Bump ruff to 0.13 (#562)
* chore: Bump ruff to 0.13 * Set obstore to first pary
1 parent 49fe65d commit d694141

4 files changed

Lines changed: 29 additions & 25 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
args: ["--maxkb=500"]
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.12.0
21+
rev: v0.13.0
2222
hooks:
2323
- id: ruff
2424
args: ["--fix"]

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dev-dependencies = [
4040
"pytest-mypy-plugins>=3.2.0",
4141
"pytest>=8.3.3",
4242
"python-dotenv>=1.0.1",
43-
"ruff>=0.12.0",
43+
"ruff>=0.13.0",
4444
"tqdm>=4.67.1",
4545
"types-boto3[s3,sts]>=1.36.23",
4646
"types-requests>=2.31.0.6",
@@ -93,6 +93,9 @@ ignore = [
9393
"SLF001", # Private member accessed
9494
]
9595

96+
[tool.ruff.lint.isort]
97+
known-first-party = ["obstore"]
98+
9699
[tool.pyright]
97100
exclude = ["**/__pycache__", "examples", ".venv"]
98101
executionEnvironments = [

tests/test_fsspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_split_path(fs: FsspecStore):
177177
assert fs._split_path("data-bucket/") == ("data-bucket", "")
178178

179179
# url format, wrong protocol
180-
with pytest.raises(ValueError, match="Expected protocol to be s3. Got gs"):
180+
with pytest.raises(ValueError, match=r"Expected protocol to be s3. Got gs"):
181181
fs._split_path("gs://data-bucket/")
182182

183183
# in url format, without bucket

uv.lock

Lines changed: 23 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)