Skip to content

Commit

Permalink
Pin github repo of precommit by hash rather than version (#24037)
Browse files Browse the repository at this point in the history
* Pin github repo of precommit by hash rather than version

* add versions in comment
  • Loading branch information
chouetz authored Mar 27, 2024
1 parent 826521c commit a6f695e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default_stages:

repos:
- repo: https://github.com/pycqa/flake8
rev: 3.9.2 # should match major Python version
rev: c6e0d27593a45342ffa96a18bba708a5aab32fdf # 3.9.2 should match major Python version
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -17,25 +17,25 @@ repos:
- flake8-unused-arguments==0.0.6
- flake8-use-fstring==1.3.0
- repo: https://github.com/psf/black
rev: 22.3.0
rev: ae2c0758c9e61a385df9700dc9c231bf54887041 # 22.3.0
hooks:
- id: black
- repo: https://github.com/timothycrosley/isort/
rev: 5.12.0
rev: e44834b7b294701f596c9118d6c370f86671a50d # 5.12.0
hooks:
- id: isort
- repo: https://github.com/jendrikseipp/vulture
rev: v2.3
rev: 44aed44e226ec0e5660851462f764ec5d5da957c # v2.3
hooks:
- id: vulture
args: ["--ignore-decorators", "@task", "--ignore-names", "test_*,Test*", "tasks"]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
rev: 7cc5848088fd8412905ab79feea6c8edc3ac76c6 # 2.1.5
hooks:
- id: shellcheck
args: ["--severity=info", "-e", "SC2059", "-e", "SC2028"]
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-beta.5
rev: bd69b816c43306f28bad4d7b303d981b0ecd2fd5 # v1.0.0-beta.5
hooks:
- id: go-fmt
args: [ "-w", "-s" ]
Expand Down

0 comments on commit a6f695e

Please sign in to comment.