Skip to content

Commit 766a7e2

Browse files
authored
Freeze pre-commit hooks (#2289)
1 parent 7e7dfd5 commit 766a7e2

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@
1414
repos:
1515
# Autoupdate: Python code
1616
- repo: https://github.com/asottile/pyupgrade
17-
rev: v3.19.1
17+
rev: ce40a160603ab0e7d9c627ae33d7ef3906e2d2b2 # frozen: v3.19.1
1818
hooks:
1919
- id: pyupgrade
2020
args: [--py312-plus]
2121

2222
# Automatically sort python imports
2323
- repo: https://github.com/PyCQA/isort
24-
rev: 6.0.1
24+
rev: c8ab4a5b21bac924d106e3103dd7c979fdd0f9bc # frozen: 6.0.1
2525
hooks:
2626
- id: isort
2727
args: [--profile, black]
2828

2929
# Autoformat: Python code
3030
- repo: https://github.com/psf/black
31-
rev: 25.1.0
31+
rev: 8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b # frozen: 25.1.0
3232
hooks:
3333
- id: black
3434
args: [--target-version=py312]
3535

3636
# Check python code static typing
3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: v1.15.0
38+
rev: f40886d54c729f533f864ed6ce584e920feb0af7 # frozen: v1.15.0
3939
hooks:
4040
- id: mypy
4141
args: [--config, ./mypy.ini]
@@ -64,13 +64,13 @@ repos:
6464

6565
# Autoformat: YAML, JSON, Markdown, etc.
6666
- repo: https://github.com/rbubley/mirrors-prettier
67-
rev: v3.5.3
67+
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
6868
hooks:
6969
- id: prettier
7070

7171
# `pre-commit sample-config` default hooks
7272
- repo: https://github.com/pre-commit/pre-commit-hooks
73-
rev: v5.0.0
73+
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
7474
hooks:
7575
- id: check-added-large-files
7676
- id: check-executables-have-shebangs
@@ -81,15 +81,15 @@ repos:
8181

8282
# Lint: Dockerfile
8383
- repo: https://github.com/hadolint/hadolint
84-
rev: v2.13.1-beta
84+
rev: c3dc18df7a501f02a560a2cc7ba3c69a85ca01d3 # frozen: v2.13.1-beta
8585
hooks:
8686
- id: hadolint-docker
8787
entry: hadolint/hadolint:v2.12.1-beta hadolint
8888

8989
# Lint: Dockerfile
9090
# We're linting .dockerfile files as well
9191
- repo: https://github.com/hadolint/hadolint
92-
rev: v2.13.1-beta
92+
rev: c3dc18df7a501f02a560a2cc7ba3c69a85ca01d3 # frozen: v2.13.1-beta
9393
hooks:
9494
- id: hadolint-docker
9595
name: Lint *.dockerfile Dockerfiles
@@ -99,48 +99,48 @@ repos:
9999

100100
# Lint: YAML
101101
- repo: https://github.com/adrienverge/yamllint
102-
rev: v1.37.0
102+
rev: be92e15345b32661abee2e675d765ae79686eb4c # frozen: v1.37.0
103103
hooks:
104104
- id: yamllint
105105
args: ["-d {extends: relaxed, rules: {line-length: disable}}", "-s"]
106106

107107
# Lint: Bash scripts
108108
- repo: https://github.com/openstack/bashate
109-
rev: 2.1.1
109+
rev: 5798d24d571676fc407e81df574c1ef57b520f23 # frozen: 2.1.1
110110
hooks:
111111
- id: bashate
112112
args: ["--ignore=E006"]
113113

114114
# Lint: Shell scripts
115115
- repo: https://github.com/shellcheck-py/shellcheck-py
116-
rev: v0.10.0.1
116+
rev: a23f6b85d0fdd5bb9d564e2579e678033debbdff # frozen: v0.10.0.1
117117
hooks:
118118
- id: shellcheck
119119
args: ["-x"]
120120

121121
# Lint: Python
122122
- repo: https://github.com/PyCQA/flake8
123-
rev: 7.2.0
123+
rev: 4b5e89b4b108a6c1a000c591d334a99a80d34c7b # frozen: 7.2.0
124124
hooks:
125125
- id: flake8
126126

127127
# Lint: Markdown
128128
- repo: https://github.com/DavidAnson/markdownlint-cli2
129-
rev: v0.17.2
129+
rev: d174eb7a8f35e05d4065c82d375ad84aa0b32352 # frozen: v0.17.2
130130
hooks:
131131
- id: markdownlint-cli2
132132
args: [--fix]
133133

134134
# Strip output from Jupyter notebooks
135135
- repo: https://github.com/kynan/nbstripout
136-
rev: 0.8.1
136+
rev: 7324e7aabccc1d1a9984dbe4dedbde8bd022a504 # frozen: 0.8.1
137137
hooks:
138138
- id: nbstripout
139139

140140
# nbQA provides tools from the Python ecosystem like
141141
# pyupgrade, isort, black, and flake8, adjusted for notebooks.
142142
- repo: https://github.com/nbQA-dev/nbQA
143-
rev: 1.9.1
143+
rev: f96ec7f3b26a32619435686eb5813235f7e3327e # frozen: 1.9.1
144144
hooks:
145145
- id: nbqa-pyupgrade
146146
args: [--py312-plus]
@@ -151,7 +151,7 @@ repos:
151151

152152
# Run black on python code blocks in documentation files.
153153
- repo: https://github.com/adamchainz/blacken-docs
154-
rev: 1.19.1
154+
rev: 78a9dcbecf4f755f65d1f3dec556bc249d723600 # frozen: 1.19.1
155155
hooks:
156156
- id: blacken-docs
157157
# --skip-errors is added to allow us to have python syntax highlighting even if

0 commit comments

Comments
 (0)