We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8831930 commit 18bf28bCopy full SHA for 18bf28b
pyproject.toml
@@ -109,18 +109,16 @@ target-version = "py310"
109
110
[tool.ruff.lint]
111
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)
+ "W", # pycodestyle warnings
+ "F", # pyflakes
+ "I", # isort (import sorting)
+ "ICN", # flake8-import-conventions
+ "PIE", # flake8-pie (misc lints)
+ "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
121
]
-# Enable specific pyupgrade rules for modern type hints
-# UP006: List[A] -> list[A]
-# UP007: Union[A, B] -> A | B
122
-# UP045: Optional[A] -> A | None
123
-extend-select = ["UP006", "UP007", "UP045"]
124
ignore = [
125
"ANN401", # Dynamically typed expressions (Any)
126
0 commit comments