Skip to content

Commit 33d51c8

Browse files
authored
Fix ruff config flagged by repo review (#8611)
1 parent 1580c2c commit 33d51c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
rev: 'v0.1.9'
2222
hooks:
2323
- id: ruff
24-
args: ["--fix"]
24+
args: ["--fix", "--show-fixes"]
2525
# https://github.com/python/black#version-control-integration
2626
- repo: https://github.com/psf/black-pre-commit-mirror
2727
rev: 23.12.1

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ exclude = [
232232
"_typed_ops.pyi",
233233
]
234234
target-version = "py39"
235+
236+
[tool.ruff.lint]
235237
# E402: module level import not at top of file
236238
# E501: line too long - let black worry about that
237239
# E731: do not assign a lambda expression, use a def
@@ -248,7 +250,7 @@ select = [
248250
"UP", # Pyupgrade
249251
]
250252

251-
[tool.ruff.isort]
253+
[tool.ruff.lint.isort]
252254
known-first-party = ["xarray"]
253255

254256
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)