Skip to content

Commit 71a27c4

Browse files
ruff settings: select → extend-select (sigstore#1320)
* ruff settings: select → extend-select Instead of explicitly selecting `E` and `F` rules, use ruff default rules, which include `F` rules and `E` rules compatible with formatters: https://docs.astral.sh/ruff/settings/#lint_extend-select According to the Scientific Python Library Development Guide, `W` rules are not needed when using a formatter: https://learn.scientific-python.org/development/guides/style/#ruff Signed-off-by: Dimitri Papadopoulos <[email protected]> * Enforce `UP` ruff rules Signed-off-by: Dimitri Papadopoulos <[email protected]> --------- Signed-off-by: Dimitri Papadopoulos <[email protected]>
1 parent 41af76a commit 71a27c4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ plugins = ["pydantic.mypy"]
121121
exclude_dirs = ["./test"]
122122

123123
[tool.ruff.lint]
124-
# Never enforce `E501` (line length violations).
125-
ignore = ["E501"]
126-
# TODO: Enable "UP" here once Pydantic allows us to:
127-
# See: https://github.com/pydantic/pydantic/issues/4146
128-
select = ["E", "F", "I", "W"]
124+
extend-select = ["I", "UP"]
125+
ignore = [
126+
"UP007", # https://github.com/pydantic/pydantic/issues/4146
127+
"UP011",
128+
"UP015",
129+
]

0 commit comments

Comments
 (0)