Skip to content

Commit

Permalink
github/workflows/reusable-unit-tests: enforce ruff format on labgrid.…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
Bastian-Krause committed Aug 19, 2024
1 parent 2f5d3ae commit abcb421
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reusable-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
run: |
pylint --list-msgs-enabled
pylint labgrid
- name: Format with ruff
run: |
ruff format --check --diff labgrid/remote/
- name: Test with pytest
run: |
pytest --cov-config .coveragerc --cov=labgrid --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ exclude = [
"venv",
"envs",
"dist",
"labgrid/remote/generated",
]

[tool.ruff.lint]
Expand Down

0 comments on commit abcb421

Please sign in to comment.