Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate-ostree-build-config: pylint is wrong about used-before-assignment #729

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading