Skip to content

Commit 0025a9a

Browse files
Bastian-KrauseEmantor
authored andcommitted
pyproject.toml: drop ruff excludes redundant to gitignore, rather extend excludes
ruff's "exclude" documentation [1] reads: "Note that you'll typically want to use extend-exclude to modify the excluded paths." Do that. The default for the "respect-gitignore" setting [2] is "true", so we can safely drop entries that are already specified there. [1] https://docs.astral.sh/ruff/settings/#exclude [2] https://docs.astral.sh/ruff/settings/#respect-gitignore Signed-off-by: Bastian Krause <[email protected]>
1 parent ec87797 commit 0025a9a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,11 @@ commands = pylint -f colorized labgrid
206206

207207
[tool.ruff]
208208
line-length = 119
209-
exclude = [
210-
"__pycache__",
211-
"labgrid.egg-info",
209+
extend-exclude = [
212210
".pybuild",
213-
"build",
214211
"debian",
215212
"env",
216-
"venv",
217213
"envs",
218-
"dist",
219214
"labgrid/remote/generated",
220215
]
221216

0 commit comments

Comments
 (0)