Skip to content

Commit 1efa2c7

Browse files
Fix pre-commit warning
Ignore lint rules conflicting with the ruff formatter
1 parent 03894d9 commit 1efa2c7

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,21 @@ extend-select = [
219219
ignore = [
220220
"RUF005",
221221
"TRY003",
222+
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
223+
"W191",
224+
"E111",
225+
"E114",
226+
"E117",
227+
"D206",
228+
"D300",
229+
"Q000",
230+
"Q001",
231+
"Q002",
232+
"Q003",
233+
"COM812",
234+
"COM819",
235+
"ISC001",
236+
"ISC002",
222237
]
223238

224239
[tool.mypy]

tests/v3/test_group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def test_group_iter(store: Store, zarr_format: ZarrFormat) -> None:
271271

272272
group = Group.from_store(store, zarr_format=zarr_format)
273273
with pytest.raises(NotImplementedError):
274-
[x for x in group] # type: ignore
274+
[x for x in group]
275275

276276

277277
def test_group_len(store: Store, zarr_format: ZarrFormat) -> None:
@@ -281,7 +281,7 @@ def test_group_len(store: Store, zarr_format: ZarrFormat) -> None:
281281

282282
group = Group.from_store(store, zarr_format=zarr_format)
283283
with pytest.raises(NotImplementedError):
284-
len(group) # type: ignore
284+
len(group)
285285

286286

287287
def test_group_setitem(store: Store, zarr_format: ZarrFormat) -> None:

0 commit comments

Comments
 (0)