Skip to content

Commit 8eac7a7

Browse files
mcgrew-oaicodex
andauthored
Pin pre-commit hook revisions to immutable commits (#1644)
## What's changing Replace non-commit `rev:` values in `.pre-commit-config.yaml` with the exact commit those refs resolve to today. ## Why Tags and branch names can be retargeted upstream; pinning to immutable commits keeps the selected code the same over time. Co-authored-by: Codex <noreply@openai.com>
1 parent dbb1a20 commit 8eac7a7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
repos:
22
- repo: https://github.com/pre-commit/mirrors-mypy
3-
rev: 'v1.3.0'
3+
rev: 'bd424e49d4f0181d4c8b8909a8cd5ce9eb058044'
44
hooks:
55
- id: mypy
66
args: ["--config-file=mypy.ini", "--no-site-packages"]
77

88
- repo: https://github.com/psf/black
9-
rev: 22.8.0
9+
rev: 2018e667a6a36ee3fbfa8041cd36512f92f60d49
1010
hooks:
1111
- id: black
1212
args: [--line-length=100, --exclude=""]
1313

1414
# this is not technically always safe but usually is
1515
# use comments `# isort: off` and `# isort: on` to disable/re-enable isort
1616
- repo: https://github.com/pycqa/isort
17-
rev: 5.12.0
17+
rev: e44834b7b294701f596c9118d6c370f86671a50d
1818
hooks:
1919
- id: isort
2020
args: [--line-length=100, --profile=black]
@@ -23,7 +23,7 @@ repos:
2323
# and this tool removes unused imports, which may be providing
2424
# necessary side effects for the code to run
2525
- repo: https://github.com/PyCQA/autoflake
26-
rev: v1.6.1
26+
rev: b567334b9fc699fc169af0ad1ea0ff0fc017fbeb
2727
hooks:
2828
- id: autoflake
2929
args:
@@ -38,7 +38,7 @@ repos:
3838
# The line length is so high because some of the evals are very long
3939
# TODO: fix the evals and then reduce the line length here
4040
- repo: https://github.com/astral-sh/ruff-pre-commit
41-
rev: v0.0.277
41+
rev: 95f113d6340ab4348ecc5d912cf6e6b3465bfb86
4242
hooks:
4343
- id: ruff
4444
args: [--fix, --exit-non-zero-on-fix, --line-length=767]

0 commit comments

Comments
 (0)