Skip to content

Commit

Permalink
Add pyupgrade rules to the ruff linter
Browse files Browse the repository at this point in the history
Leave out UP015 (redundant-open-modes) because we prefer explicit
open modes to implicit ones.
  • Loading branch information
DimitriPapadopoulos committed Nov 23, 2023
1 parent 3f11201 commit d3689b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[lint]
extend-select = [
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
]
extend-ignore = [
# https://docs.astral.sh/ruff/rules/redundant-open-modes/
# we prefer explicit to implicit open modes
"UP015",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
Expand Down

0 comments on commit d3689b9

Please sign in to comment.