Skip to content

Commit

Permalink
Fix ruff config flagged by repo review (#8611)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqa236 authored Jan 16, 2024
1 parent 1580c2c commit 33d51c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
rev: 'v0.1.9'
hooks:
- id: ruff
args: ["--fix"]
args: ["--fix", "--show-fixes"]
# https://github.com/python/black#version-control-integration
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ exclude = [
"_typed_ops.pyi",
]
target-version = "py39"

[tool.ruff.lint]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E731: do not assign a lambda expression, use a def
Expand All @@ -248,7 +250,7 @@ select = [
"UP", # Pyupgrade
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["xarray"]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 33d51c8

Please sign in to comment.