Skip to content

Commit 8df3833

Browse files
committed
ci(ruff): Strengthen code quality linting
1 parent 557cd3f commit 8df3833

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pyproject.toml

+27
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,33 @@ module = [
155155
]
156156
ignore_missing_imports = true
157157

158+
[tool.ruff]
159+
target-version = "py37"
160+
select = [
161+
"E", # pycodestyle
162+
"F", # pyflakes
163+
"I", # isort
164+
"UP", # pyupgrade
165+
"B", # flake8-bugbear
166+
"C4", # flake8-comprehensions
167+
"Q", # flake8-quotes
168+
"PTH", # flake8-use-pathlib
169+
"ERA", # eradicate
170+
"SIM", # flake8-simplify
171+
"TRY", # Trycertatops
172+
"PERF", # Perflint
173+
"RUF" # Ruff-specific rules
174+
]
175+
176+
[tool.ruff.isort]
177+
known-first-party = [
178+
"tmuxp"
179+
]
180+
combine-as-imports = true
181+
182+
[tool.ruff.per-file-ignores]
183+
"*/__init__.py" = ["F401"]
184+
158185
[build-system]
159186
requires = ["poetry_core>=1.0.0"]
160187
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)