Skip to content

Commit

Permalink
pyproject.toml: enforce ruff format on formatted code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Bastian-Krause authored and Emantor committed Oct 21, 2024
1 parent fb2cfba commit d8eac5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,15 @@ extend-exclude = [
]
include = [
"**/pyproject.toml",
"examples/**/*.py",
"labgrid/remote/**/*.py",
"labgrid/driver/httpvideodriver.py",
"labgrid/driver/manualswitchdriver.py",
"labgrid/protocol/**/*.py",
"labgrid/resource/httpvideostream.py",
"labgrid/resource/provider.py",
"labgrid/util/agents/usb_hid_relay.py",
"labgrid/util/exceptions.py",
]

[tool.ruff.lint]
Expand Down

0 comments on commit d8eac5c

Please sign in to comment.