Skip to content

Commit 569a32a

Browse files
committed
ci(ruff): Strengthen code quality linting
1 parent 583b207 commit 569a32a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,32 @@ exclude_lines = [
161161
"@overload( |$)",
162162
]
163163

164+
[tool.ruff]
165+
target-version = "py39"
166+
select = [
167+
"E", # pycodestyle
168+
"F", # pyflakes
169+
"I", # isort
170+
"UP", # pyupgrade
171+
"B", # flake8-bugbear
172+
"C4", # flake8-comprehensions
173+
"Q", # flake8-quotes
174+
"PTH", # flake8-use-pathlib
175+
"SIM", # flake8-simplify
176+
"TRY", # Trycertatops
177+
"PERF", # Perflint
178+
"RUF" # Ruff-specific rules
179+
]
180+
181+
[tool.ruff.isort]
182+
known-first-party = [
183+
"vcspull"
184+
]
185+
combine-as-imports = true
186+
187+
[tool.ruff.per-file-ignores]
188+
"*/__init__.py" = ["F401"]
189+
164190
[build-system]
165191
requires = ["poetry_core>=1.0.0", "setuptools>50"]
166192
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)