From f7bd5bfd0b0275ad4ae6f13658baac2c117310e1 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 15 Dec 2025 11:00:17 +0100 Subject: [PATCH] Optimized linters and solved linting bugs --- .github/workflows/ci.yml | 8 ++++---- .../workflows/{linter-python.yml => lint-python.yml} | 2 +- .../workflows/{linter-shell.yml => lint-shell.yml} | 2 +- .github/workflows/mark-stable.yml | 12 ++++++------ .../pkgmgr/cli/commands/test_release_publish_hook.py | 1 - 5 files changed, 12 insertions(+), 13 deletions(-) rename .github/workflows/{linter-python.yml => lint-python.yml} (95%) rename .github/workflows/{linter-shell.yml => lint-shell.yml} (95%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3140513..b1ef118 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,8 @@ jobs: test-virgin-root: uses: ./.github/workflows/test-virgin-root.yml - linter-shell: - uses: ./.github/workflows/linter-shell.yml + lint-shell: + uses: ./.github/workflows/lint-shell.yml - linter-python: - uses: ./.github/workflows/linter-python.yml + lint-python: + uses: ./.github/workflows/lint-python.yml diff --git a/.github/workflows/linter-python.yml b/.github/workflows/lint-python.yml similarity index 95% rename from .github/workflows/linter-python.yml rename to .github/workflows/lint-python.yml index 10fd460..84c2428 100644 --- a/.github/workflows/linter-python.yml +++ b/.github/workflows/lint-python.yml @@ -4,7 +4,7 @@ on: workflow_call: jobs: - linter-python: + lint-python: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/linter-shell.yml b/.github/workflows/lint-shell.yml similarity index 95% rename from .github/workflows/linter-shell.yml rename to .github/workflows/lint-shell.yml index 5a08b19..4af233c 100644 --- a/.github/workflows/linter-shell.yml +++ b/.github/workflows/lint-shell.yml @@ -4,7 +4,7 @@ on: workflow_call: jobs: - linter-shell: + lint-shell: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/mark-stable.yml b/.github/workflows/mark-stable.yml index 7144f7d..74b4499 100644 --- a/.github/workflows/mark-stable.yml +++ b/.github/workflows/mark-stable.yml @@ -29,16 +29,16 @@ jobs: test-virgin-root: uses: ./.github/workflows/test-virgin-root.yml - linter-shell: - uses: ./.github/workflows/linter-shell.yml + lint-shell: + uses: ./.github/workflows/lint-shell.yml - linter-python: - uses: ./.github/workflows/linter-python.yml + lint-python: + uses: ./.github/workflows/lint-python.yml mark-stable: needs: - - linter-shell - - linter-python + - lint-shell + - lint-python - test-unit - test-integration - test-env-nix diff --git a/tests/unit/pkgmgr/cli/commands/test_release_publish_hook.py b/tests/unit/pkgmgr/cli/commands/test_release_publish_hook.py index 6d5eb28..e2d1862 100644 --- a/tests/unit/pkgmgr/cli/commands/test_release_publish_hook.py +++ b/tests/unit/pkgmgr/cli/commands/test_release_publish_hook.py @@ -1,6 +1,5 @@ from __future__ import annotations -import os import tempfile import unittest from types import SimpleNamespace