From 8837a5925e798ecb77b6f42b51e54388eb310dbc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:15:34 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.15.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.2...v0.15.10) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.20.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.20.1) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/gitleaks/gitleaks: v8.23.1 → v8.30.0](https://github.com/gitleaks/gitleaks/compare/v8.23.1...v8.30.0) - [github.com/python-jsonschema/check-jsonschema: 0.31.0 → 0.37.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.0...0.37.1) - [github.com/Lucas-C/pre-commit-hooks: v1.5.5 → v1.5.6](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.5...v1.5.6) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d043cf..9c32798 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,13 +4,13 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.2 + rev: v0.15.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.14.1 + rev: v1.20.1 hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports] @@ -24,7 +24,7 @@ repos: # types-cachetools, ] - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: v0.11.0.1 hooks: - id: shellcheck - repo: https://github.com/pre-commit/mirrors-prettier @@ -32,7 +32,7 @@ repos: hooks: - id: prettier - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-merge-conflict @@ -44,19 +44,19 @@ repos: args: - --allow-missing-credentials - repo: https://github.com/gitleaks/gitleaks - rev: v8.23.1 + rev: v8.30.0 hooks: - id: gitleaks # The hook runs 'gitleaks protect --staged' which parses output of # 'git diff --staged', i.e. always passes in pre-push/manual stage. stages: [pre-commit] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.31.0 + rev: 0.37.1 hooks: - id: check-github-workflows args: ["--verbose"] - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: insert-license files: \.py$ From cba6aef518eeff9809d9e0c5c329c485ad9652e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:20:10 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/validation/testcase/pagure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validation/testcase/pagure.py b/src/validation/testcase/pagure.py index c571c90..9cf83bc 100644 --- a/src/validation/testcase/pagure.py +++ b/src/validation/testcase/pagure.py @@ -274,13 +274,13 @@ def create_file_in_new_branch(self, branch: str): test_file.write_text("Testing the opened PR trigger.") # Add and commit the file - subprocess.run( # noqa: S603 + subprocess.run( ["git", "add", "test.txt"], # noqa: S607 cwd=repo_dir, check=True, capture_output=True, ) - subprocess.run( # noqa: S603 + subprocess.run( ["git", "commit", "-m", "Opened PR trigger"], # noqa: S607 cwd=repo_dir, check=True, @@ -491,7 +491,7 @@ def create_empty_commit(self, branch: str, commit_msg: str) -> str: ) # Get commit SHA - result = subprocess.run( # noqa: S603 + result = subprocess.run( ["git", "rev-parse", "HEAD"], # noqa: S607 cwd=repo_dir, check=True,