Skip to content

Commit

Permalink
generate-ostree-build-config: pylint is wrong about used-before-assig…
Browse files Browse the repository at this point in the history
…nment

Also output the version of pylint being used by the github workflow.
  • Loading branch information
bcl authored and achilleas-k committed Jun 5, 2024
1 parent 1d011ec commit 619e8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,5 @@ jobs:

- name: Analysing the code with pylint
run: |
python3 -m pylint --version
python3 -m pylint $(grep -l "/usr/bin/env python3" -r test/scripts) test/scripts/*.py
2 changes: 1 addition & 1 deletion test/scripts/generate-ostree-build-config
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def default_ref(distro, arch):
else:
raise ValueError(f"unknown distro name {name}")

return f"{name}/{version}/{arch}/{product}"
return f"{name}/{version}/{arch}/{product}" #pylint: disable=possibly-used-before-assignment


@contextmanager
Expand Down

0 comments on commit 619e8cb

Please sign in to comment.