Skip to content

Commit

Permalink
Merge pull request labgrid-project#1480 from Bastian-Krause/bst/ruff
Browse files Browse the repository at this point in the history
github: enforce ruff format on labgrid.remote
  • Loading branch information
Emantor authored Sep 9, 2024
2 parents f1b2bc3 + abcb421 commit b9e2bbc
Show file tree
Hide file tree
Showing 2 changed files with 5 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
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ dev = [
"pytest-isort>=2.0.0",
"pytest-mock>=3.6.1",
"pylint>=3.0.0",
"ruff>=0.5.7",

# GRPC Channelz support
"grpcio-channelz>=1.64.1, <2.0.0",
Expand Down Expand Up @@ -255,6 +256,7 @@ exclude = [
"venv",
"envs",
"dist",
"labgrid/remote/generated",
]

[tool.ruff.lint]
Expand Down

0 comments on commit b9e2bbc

Please sign in to comment.