Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -24,15 +24,15 @@ 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
rev: v4.0.0-alpha.8
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
Expand All @@ -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$
Expand Down
6 changes: 3 additions & 3 deletions src/validation/testcase/pagure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading