From 036863b68ec2ea14319332539b6764ef95d56cd1 Mon Sep 17 00:00:00 2001 From: Albrecht Kleinfeld Date: Thu, 14 Nov 2024 10:26:50 +0100 Subject: [PATCH] Test ruff --- .github/workflows/ruff.yml | 6 ++++-- tests/mockstuff.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 582c9e16..56587352 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -10,5 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: chartboost/ruff-action@v1 - continue-on-error: true # remove when https://github.com/Draegerwerk/sdc11073/issues/156 is done + - uses: astral-sh/ruff-action@v1 + with: + src: "./src" + changed-files: "true" diff --git a/tests/mockstuff.py b/tests/mockstuff.py index a81b09a1..df577530 100644 --- a/tests/mockstuff.py +++ b/tests/mockstuff.py @@ -39,6 +39,7 @@ def dec_list(*args): def _findServer(netloc): dev_addr = netloc.split(':') + a=1 dev_addr = tuple([dev_addr[0], int(dev_addr[1])]) # make port number an integer for key, srv in _mockhttpservers.items(): if tuple(key) == dev_addr: