From 619e8cb0f215e23eceb89e8c95a77c3ab7cee281 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 4 Jun 2024 16:07:00 -0700 Subject: [PATCH] generate-ostree-build-config: pylint is wrong about used-before-assignment Also output the version of pylint being used by the github workflow. --- .github/workflows/tests.yml | 1 + test/scripts/generate-ostree-build-config | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59022eb950..bf926e6026 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/test/scripts/generate-ostree-build-config b/test/scripts/generate-ostree-build-config index 9dfd43bb69..decf255bac 100755 --- a/test/scripts/generate-ostree-build-config +++ b/test/scripts/generate-ostree-build-config @@ -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