diff --git a/.github/workflows/reusable-unit-tests.yml b/.github/workflows/reusable-unit-tests.yml index 852cd1a26..6a6eef797 100644 --- a/.github/workflows/reusable-unit-tests.yml +++ b/.github/workflows/reusable-unit-tests.yml @@ -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" diff --git a/pyproject.toml b/pyproject.toml index b06d84ea4..6eab8df10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -255,6 +256,7 @@ exclude = [ "venv", "envs", "dist", + "labgrid/remote/generated", ] [tool.ruff.lint]