Skip to content

Commit c57902e

Browse files
authored
Bump ruff to 0.10 (#353)
* Bump ruff to 0.10 * Fix ruff heading
1 parent a4f915a commit c57902e

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

.pre-commit-config.yaml

+1-1
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.9.6
21+
rev: v0.10.0
2222
hooks:
2323
- id: ruff
2424
args: ["--fix"]

obstore/python/obstore/auth/google.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __call__(self) -> GCSCredential:
7676
self.credentials.refresh(self.request)
7777
return {
7878
# self.credentials.token is a str
79-
"token": cast(str, self.credentials.token),
79+
"token": cast("str", self.credentials.token),
8080
"expires_at": _replace_expiry_timezone_utc(self.credentials.expiry),
8181
}
8282

@@ -146,7 +146,7 @@ async def __call__(self) -> GCSCredential:
146146
await self.credentials.refresh(self.async_request)
147147
return {
148148
# self.credentials.token is a str
149-
"token": cast(str, self.credentials.token),
149+
"token": cast("str", self.credentials.token),
150150
"expires_at": _replace_expiry_timezone_utc(self.credentials.expiry),
151151
}
152152

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dev-dependencies = [
2727
"pyarrow>=17.0.0",
2828
"pytest-asyncio>=0.24.0",
2929
"pytest>=8.3.3",
30-
"ruff>=0.8.4",
30+
"ruff>=0.10.0",
3131
"types-boto3[sts]>=1.36.23",
3232
"polars>=1.24.0",
3333
]
@@ -64,7 +64,7 @@ ignore = [
6464
"SLF001", # Private member accessed
6565
]
6666

67-
[tool.ruff.extend-per-file-ignores]
67+
[tool.ruff.lint.extend-per-file-ignores]
6868
"__init__.py" = [
6969
"F401", # Allow unused imports in __init__.py files
7070
"F403", # unable to detect undefined names

uv.lock

+22-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)