Skip to content

Commit 708ee54

Browse files
committed
ci(ruff): Strengthen code quality linting
1 parent 96a09c0 commit 708ee54

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
@@ -129,6 +129,33 @@ exclude_lines = [
129129
"@overload( |$)",
130130
]
131131

132+
[tool.ruff]
133+
target-version = "py37"
134+
select = [
135+
"E", # pycodestyle
136+
"F", # pyflakes
137+
"I", # isort
138+
"UP", # pyupgrade
139+
"B", # flake8-bugbear
140+
"C4", # flake8-comprehensions
141+
"Q", # flake8-quotes
142+
"PTH", # flake8-use-pathlib
143+
"ERA", # eradicate
144+
"SIM", # flake8-simplify
145+
"TRY", # Trycertatops
146+
"PERF", # Perflint
147+
"RUF" # Ruff-specific rules
148+
]
149+
150+
[tool.ruff.isort]
151+
known-first-party = [
152+
"libtmux"
153+
]
154+
combine-as-imports = true
155+
156+
[tool.ruff.per-file-ignores]
157+
"*/__init__.py" = ["F401"]
158+
132159
[build-system]
133160
requires = ["poetry_core>=1.0.0", "setuptools>50"]
134161
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)