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$ 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,