Skip to content

Commit d8eac5c

Browse files
Bastian-KrauseEmantor
authored andcommitted
pyproject.toml: enforce ruff format on formatted code
Formatted files were found via: $ diff --changed-group-format='%>' --unchanged-group-format='' <(ruff format --config "include = ['*.py','helpers/*']" --check | grep "Would reformat" | cut -d" " -f3) <(git ls-files *.py For now, single __init__.py files and files in tests/ were omitted. We should enforce formatting of more modules over time. Signed-off-by: Bastian Krause <[email protected]>
1 parent fb2cfba commit d8eac5c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,15 @@ extend-exclude = [
215215
]
216216
include = [
217217
"**/pyproject.toml",
218+
"examples/**/*.py",
218219
"labgrid/remote/**/*.py",
220+
"labgrid/driver/httpvideodriver.py",
221+
"labgrid/driver/manualswitchdriver.py",
222+
"labgrid/protocol/**/*.py",
223+
"labgrid/resource/httpvideostream.py",
224+
"labgrid/resource/provider.py",
225+
"labgrid/util/agents/usb_hid_relay.py",
226+
"labgrid/util/exceptions.py",
219227
]
220228

221229
[tool.ruff.lint]

0 commit comments

Comments
 (0)