Skip to content

Commit abcb421

Browse files
github/workflows/reusable-unit-tests: enforce ruff format on labgrid.remote
The labgrid.remote module was formatted with ruff in #1426. The gRPC changes are formatted correctly. Enforce formatting on the module now, but exclude generated code. We can enforce formatting of more modules over time. Signed-off-by: Bastian Krause <[email protected]>
1 parent 2f5d3ae commit abcb421

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/reusable-unit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
run: |
5252
pylint --list-msgs-enabled
5353
pylint labgrid
54+
- name: Format with ruff
55+
run: |
56+
ruff format --check --diff labgrid/remote/
5457
- name: Test with pytest
5558
run: |
5659
pytest --cov-config .coveragerc --cov=labgrid --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ exclude = [
256256
"venv",
257257
"envs",
258258
"dist",
259+
"labgrid/remote/generated",
259260
]
260261

261262
[tool.ruff.lint]

0 commit comments

Comments
 (0)