Skip to content

Commit 18bf28b

Browse files
committed
move to select
1 parent 8831930 commit 18bf28b

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

pyproject.toml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,16 @@ target-version = "py310"
109109

110110
[tool.ruff.lint]
111111
select = [
112-
"W", # pycodestyle warnings
113-
"F", # pyflakes
114-
"I", # isort (import sorting)
115-
"ICN", # flake8-import-conventions
116-
"PIE", # flake8-pie (misc lints)
117-
"TID", # flake8-tidy-imports (ban relative imports)
112+
"W", # pycodestyle warnings
113+
"F", # pyflakes
114+
"I", # isort (import sorting)
115+
"ICN", # flake8-import-conventions
116+
"PIE", # flake8-pie (misc lints)
117+
"TID", # flake8-tidy-imports (ban relative imports)
118+
"UP006", # List[A] -> list[A]
119+
"UP007", # Union[A, B] -> A | B
120+
"UP045", # Optional[A] -> A | None
118121
]
119-
# Enable specific pyupgrade rules for modern type hints
120-
# UP006: List[A] -> list[A]
121-
# UP007: Union[A, B] -> A | B
122-
# UP045: Optional[A] -> A | None
123-
extend-select = ["UP006", "UP007", "UP045"]
124122
ignore = [
125123
"ANN401", # Dynamically typed expressions (Any)
126124
]

0 commit comments

Comments
 (0)