ci: pin GitHub Actions + pre-commit hooks (#2744)

* Update and pin GitHub Actions

* Pin pre-commit hooks too

* adjustments (don't pin official actions)
This commit is contained in:
Agriya Khetarpal
2026-03-24 18:03:54 -04:00
committed by GitHub
parent 817878a5f9
commit 5d52226105
5 changed files with 50 additions and 46 deletions
+6 -6
View File
@@ -3,7 +3,7 @@ ci:
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
@@ -16,14 +16,14 @@ repos:
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
rev: 4924b0e01e032fea073ad04a1c5cfa7e4add0afb # frozen: v0.15.6
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: a66e98df7b4aeeb3724184b332785976d062b92e # frozen: v1.19.1
hooks:
- id: mypy
name: mypy 3.11 on cibuildwheel/
@@ -56,7 +56,7 @@ repos:
additional_dependencies: *mypy-dependencies
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
hooks:
- id: shellcheck
@@ -77,7 +77,7 @@ repos:
additional_dependencies: [cogapp>=3.5]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
hooks:
- id: codespell
args: ["-w"]
@@ -85,7 +85,7 @@ repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
rev: 9f48a48aa91a6040d749ad68ec70907d907a5a7f # frozen: 0.37.0
hooks:
- id: check-dependabot
- id: check-github-actions