Skip to content

Commit

Permalink
Test ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kleinf committed Nov 14, 2024
1 parent a55b40b commit 036863b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions tests/mockstuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def dec_list(*args):

def _findServer(netloc):

Check failure on line 40 in tests/mockstuff.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (N802)

tests/mockstuff.py:40:5: N802 Function name `_findServer` should be lowercase

Check failure on line 40 in tests/mockstuff.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN202)

tests/mockstuff.py:40:5: ANN202 Missing return type annotation for private function `_findServer`

Check failure on line 40 in tests/mockstuff.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN001)

tests/mockstuff.py:40:17: ANN001 Missing type annotation for function argument `netloc`
dev_addr = netloc.split(':')
a=1

Check failure on line 42 in tests/mockstuff.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F841)

tests/mockstuff.py:42:5: F841 Local variable `a` is assigned to but never used
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:
Expand Down

0 comments on commit 036863b

Please sign in to comment.