From b3e96f2e6a4c2438d5460c372f24d9e1be867b0f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 00:52:49 +0000 Subject: [PATCH 1/3] chore(deps): bump actions/setup-python from 6 to 7 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e4c0f20..45ee42ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - name: Install poetry run: pip install poetry - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: cache: 'poetry' cache-dependency-path: "tests/pyproject.toml" @@ -77,7 +77,7 @@ jobs: - name: Install poetry run: pip install poetry - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.12' cache: 'poetry' From 76557b5744c3149644fad695a3ca0c22fbb388a1 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Sun, 2 Aug 2026 03:41:00 -0700 Subject: [PATCH 2/3] Fix lints --- scripts/checkstyle.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/checkstyle.py b/scripts/checkstyle.py index 6e2d3dd3..6028d9b1 100755 --- a/scripts/checkstyle.py +++ b/scripts/checkstyle.py @@ -1,9 +1,11 @@ #!/usr/bin/env python3 -import re -import os import argparse +import os +import re +import sys +from collections.abc import Callable # Compatability. from pathlib import Path -from typing import Callable, List, Dict, Any # compat +from typing import Any # This file checks Bash and Shell scripts for violations not found with # shellcheck or existing methods. You can use it in several ways: @@ -21,7 +23,7 @@ # Check to ensure all regular expressions are working as intended: # $ ./scripts/checkstyle.py --internal-test-regex -Rule = Dict[str, Any] +Rule = dict[str, Any] class c: RED = '\033[91m' @@ -91,7 +93,7 @@ def noVerboseRedirectionFixer(line: str, m: Any) -> str: return f'{prestr}&>/dev/null{poststr}' -def lintfile(file: Path, rules: List[Rule], options: Dict[str, Any]): +def lintfile(file: Path, rules: list[Rule], options: dict[str, Any]): content_arr = file.read_text().split('\n') for line_i, line in enumerate(content_arr): @@ -100,6 +102,7 @@ def lintfile(file: Path, rules: List[Rule], options: Dict[str, Any]): for rule in rules: should_run = False + # ruff: noqa: SIM102 if 'sh' in rule['fileTypes']: if file.name.endswith('.sh'): should_run = True @@ -108,7 +111,7 @@ def lintfile(file: Path, rules: List[Rule], options: Dict[str, Any]): should_run = True if options['verbose']: - print(f'{str(file)}: {should_run}') + print(f'{file!s}: {should_run}') if not should_run: continue @@ -134,7 +137,7 @@ def lintfile(file: Path, rules: List[Rule], options: Dict[str, Any]): file.write_text('\n'.join(content_arr)) def main(): - rules: List[Rule] = [ + rules: list[Rule] = [ { 'name': 'no-pwd-capture', 'regex': '(?P\\$\\(pwd\\))', @@ -255,8 +258,8 @@ def main(): # exit if grand_total == 0: - exit(0) + sys.exit(0) else: - exit(2) + sys.exit(2) main() From 11f1e99707b9c6cfa2554de27ee68e485525e1ee Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Sun, 2 Aug 2026 04:54:48 -0700 Subject: [PATCH 3/3] Fix typo --- scripts/checkstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkstyle.py b/scripts/checkstyle.py index 6028d9b1..75a2911b 100755 --- a/scripts/checkstyle.py +++ b/scripts/checkstyle.py @@ -3,7 +3,7 @@ import os import re import sys -from collections.abc import Callable # Compatability. +from collections.abc import Callable # Compatibility. from pathlib import Path from typing import Any