Skip to content

Commit c88510a

Browse files
committed
ci(ruff): Strengthen code quality linting
1 parent f794f31 commit c88510a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pyproject.toml

+26
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,32 @@ 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+
"SIM", # flake8-simplify
170+
"TRY", # Trycertatops
171+
"PERF", # Perflint
172+
"RUF" # Ruff-specific rules
173+
]
174+
175+
[tool.ruff.isort]
176+
known-first-party = [
177+
"tmuxp"
178+
]
179+
combine-as-imports = true
180+
181+
[tool.ruff.per-file-ignores]
182+
"*/__init__.py" = ["F401"]
183+
158184
[build-system]
159185
requires = ["poetry_core>=1.0.0"]
160186
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)