Skip to content

Commit 2546d88

Browse files
committed
chore: ruff fixes
1 parent 134bc54 commit 2546d88

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
stages: [commit-msg]
1818

1919
- repo: https://github.com/charliermarsh/ruff-pre-commit
20-
rev: "v0.0.230"
20+
rev: "v0.2.1"
2121
hooks:
2222
- id: ruff
2323
args: ["--config", "pyproject.toml"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ dataset = ds.dataset("data", format="parquet", filesystem=store)
183183

184184
### Running tests
185185

186-
If you do not have [`just`](<(https://github.com/casey/just#readme)>) installed and do not wish to install it,
186+
If you do not have [`just`](https://github.com/casey/just#readme) installed and do not wish to install it,
187187
have a look at the [`justfile`](https://github.com/roeap/object-store-python/blob/main/justfile) to see the raw commands.
188188

189189
To set up the development environment, and install a dev version of the native package just run:

object-store/tests/test_object_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_put_get_delete_list(object_store: tuple[ObjectStore, Path]):
5454
range_result = store.get_range(location, 3, 4)
5555
assert range_result == expected_data[3:7]
5656

57-
with pytest.raises(Exception):
57+
with pytest.raises(Exception): # noqa: B017
5858
store.get_range(location, 200, 100)
5959

6060
head = store.head(location)

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ pytest = "^7.1.3"
2020
pytest-datadir = ">=1.3.1"
2121
ipykernel = ">=6.15.2"
2222
pytest-cov = "^4.0.0"
23-
ruff = ">=0.0.230"
23+
# pinned to match .pre-commit-config.yaml
24+
ruff = "0.2.1"
2425
pytest-benchmark = "^4.0.0"
2526

2627
[tool.poetry.group.examples.dependencies]
@@ -53,15 +54,17 @@ exclude = [
5354
'typestubs',
5455
'*.pyi',
5556
]
56-
ignore = ['E501']
5757
line-length = 120
58+
59+
[tool.ruff.lint]
60+
ignore = ['E501']
5861
select = ['B', 'C4', 'E', 'F', "I", "S", 'W']
5962

60-
[tool.ruff.per-file-ignores]
63+
[tool.ruff.lint.per-file-ignores]
6164
# allow asserts in test files (bandit)
6265
"test_*" = ["S101"]
6366

64-
[tool.ruff.isort]
67+
[tool.ruff.lint.isort]
6568
known-first-party = ["object_store"]
6669

6770
[tool.pyright]

0 commit comments

Comments
 (0)