Skip to content

Commit

Permalink
Put back [lint]
Browse files Browse the repository at this point in the history
But now have to duplicate `extend-exclude` in `[lint]` and `[format]` sections.
  • Loading branch information
DimitriPapadopoulos committed Jan 4, 2024
1 parent 2fc03cb commit 27ffe50
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[lint]
ignore = [
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
Expand All @@ -16,20 +17,24 @@ ignore = [
"ISC002",
]
extend-select = [
"UP", # pyupgrade
"UP", # pyupgrade
]
extend-ignore = [
"UP015", # redundant-open-modes, explicit is prefered
"UP030", # temporarily disabled
"UP031", # temporarily disabled
"UP032", # temporarily disabled
"UP036", # temporarily disabled
"UP015", # redundant-open-modes, explicit is prefered
"UP030", # temporarily disabled
"UP031", # temporarily disabled
"UP032", # temporarily disabled
"UP036", # temporarily disabled
]
extend-exclude = [
"**/_vendor",
"setuptools/_distutils",
"**/_vendor",
"setuptools/_distutils",
]

[format]
extend-exclude = [
"**/_vendor",
"setuptools/_distutils",
]
# https://docs.astral.sh/ruff/settings/#format-quote-style
quote-style = "preserve"

0 comments on commit 27ffe50

Please sign in to comment.