Skip to content

Commit c53f2a1

Browse files
committed
NRL-1922 Switch pre-commit to use commit version instead of tags
1 parent 74ea47d commit c53f2a1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/Yelp/detect-secrets
4-
rev: v1.4.0
4+
rev: 001e16323a2f0162336345f4ceb6d72c204980b5 # v1.4.0
55
hooks:
66
- id: detect-secrets
77
exclude: .pre-commit-config.yaml|layer/psycopg2/.*
@@ -12,7 +12,7 @@ repos:
1212
- id: prettier
1313

1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.0.1
15+
rev: 38b88246ccc552bffaaf54259d064beeee434539 # v4.0.1
1616
hooks:
1717
- id: check-yaml
1818
- id: check-json
@@ -28,7 +28,7 @@ repos:
2828

2929
# Flake8 for print only (error code T201)
3030
- repo: https://github.com/pycqa/flake8
31-
rev: 6.0.0
31+
rev: b9a7794c4f425ef8419081e6993f99419cc667ea # 6.0.0
3232
hooks:
3333
- id: flake8
3434
additional_dependencies:
@@ -38,13 +38,13 @@ repos:
3838
- "--exclude=.git,__pycache__,dist,.venv,scripts/*"
3939

4040
- repo: https://github.com/psf/black
41-
rev: 24.3.0
41+
rev: 552baf822992936134cbd31a38f69c8cfe7c0f05 # 24.3.0
4242
hooks:
4343
- id: black
4444
language_version: python3
4545

4646
- repo: https://github.com/pycqa/isort
47-
rev: 5.12.0
47+
rev: e44834b7b294701f596c9118d6c370f86671a50d # 5.12.0
4848
hooks:
4949
- id: isort
5050
args:
@@ -58,13 +58,13 @@ repos:
5858
]
5959

6060
- repo: https://github.com/ducminh-phan/reformat-gherkin
61-
rev: v3.0.1
61+
rev: b6674f526d8b198ffad5d016b71430e3dc7a0e8e # v3.0.1
6262
hooks:
6363
- id: reformat-gherkin
6464

6565
# This uses the root .terraform-version file, make sure to update it you change the actual terraform versions
6666
- repo: https://github.com/antonbabenko/pre-commit-terraform
67-
rev: v1.76.0
67+
rev: 07c6764c309d14fd37536e6c679354ab99c59a59 # v1.76.0
6868
hooks:
6969
- id: terraform_fmt
7070
args:

0 commit comments

Comments
 (0)