Skip to content

Commit b9e2bbc

Browse files
authored
Merge pull request #1480 from Bastian-Krause/bst/ruff
github: enforce ruff format on labgrid.remote
2 parents f1b2bc3 + abcb421 commit b9e2bbc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ dev = [
127127
"pytest-isort>=2.0.0",
128128
"pytest-mock>=3.6.1",
129129
"pylint>=3.0.0",
130+
"ruff>=0.5.7",
130131

131132
# GRPC Channelz support
132133
"grpcio-channelz>=1.64.1, <2.0.0",
@@ -255,6 +256,7 @@ exclude = [
255256
"venv",
256257
"envs",
257258
"dist",
259+
"labgrid/remote/generated",
258260
]
259261

260262
[tool.ruff.lint]

0 commit comments

Comments
 (0)