44 # This hook should always pass. It will print a message if the local version
55 # is out of date.
66 - repo: https://github.com/lincc-frameworks/pre-commit-hooks
7- rev: v0.2.2
7+ rev: 439dda8bd784f4aa721851ecec03877df286f6b5
88 hooks:
99 - id: check-lincc-frameworks-template-version
1010 name: Check template version
2323 entry: jupyter nbconvert --clear-output
2424 # Prevents committing directly branches named 'main' and 'master'.
2525 - repo: https://github.com/pre-commit/pre-commit-hooks
26- rev: v4.4.0
26+ rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c
2727 hooks:
2828 - id: no-commit-to-branch
2929 name: Prevent main branch commits
@@ -34,21 +34,21 @@ repos:
3434 args: ['--maxkb=500']
3535 # Verify that pyproject.toml is well formed
3636 - repo: https://github.com/abravalheri/validate-pyproject
37- rev: v0.24.1
37+ rev: 17e12779811926f000bdfa1795f9e3735dd71ac3
3838 hooks:
3939 - id: validate-pyproject
4040 name: Validate pyproject.toml
4141 description: Verify that pyproject.toml adheres to the established schema.
4242 # Verify that GitHub workflows are well formed
4343 - repo: https://github.com/python-jsonschema/check-jsonschema
44- rev: 0.28.0
44+ rev: 0494aa7fa1314e98913a41227d8f0a515b2c1049
4545 hooks:
4646 - id: check-github-workflows
4747 args: ["--verbose"]
4848{% - if 'isort' in enforce_style %}
4949 # Automatically sort the imports used in .py files
5050 - repo: https://github.com/pycqa/isort
51- rev: 5.12.0
51+ rev: 9f905615631c545f5aea2516508109350d1d2f7d
5252 hooks:
5353 - id: isort
5454 name: Run isort
9090{% - if 'black' in enforce_style %}
9191 # Analyze the code style and report code that doesn't adhere.
9292 - repo: https://github.com/psf/black
93- rev: 23.7.0
93+ rev: 258e7dbf348bc23cb70b8cdf693481c04634ebcc
9494 hooks:
9595 - id: black-jupyter
9696 name: Format code using black
@@ -104,7 +104,7 @@ repos:
104104{% - if 'ruff_lint' in enforce_style %}
105105 - repo: https://github.com/astral-sh/ruff-pre-commit
106106 # Ruff version.
107- rev: v0.2.1
107+ rev: 44b5042edab9382aba712eed4f9c7bab7a3d6a3e
108108 hooks:
109109 - id: ruff
110110 name: Lint code using ruff; sort and organize imports
@@ -114,7 +114,7 @@ repos:
114114{% - if 'ruff_format' in enforce_style %}
115115 - repo: https://github.com/astral-sh/ruff-pre-commit
116116 # Ruff version.
117- rev: v0.2.1
117+ rev: 44b5042edab9382aba712eed4f9c7bab7a3d6a3e
118118 hooks:
119119 - id: ruff-format
120120 name: Format code using ruff
@@ -123,7 +123,7 @@ repos:
123123{% - if mypy_type_checking != 'none' %}
124124 # Analyze type hints and report errors.
125125 - repo: https://github.com/pre-commit/mirrors-mypy
126- rev: v1.19.0
126+ rev: 2834ec6639549dd6796205c8f011dedcd587288b
127127 hooks:
128128 - id: mypy
129129 name: mypy (python files in src/ and tests/)
@@ -142,7 +142,7 @@ repos:
142142{% - endif %}
143143{% - if include_docs and include_notebooks %}
144144 - repo: https://github.com/lincc-frameworks/pre-commit-hooks
145- rev: v0.2.2
145+ rev: 439dda8bd784f4aa721851ecec03877df286f6b5
146146 hooks:
147147 - id: pre-executed-nb-never-execute
148148 name: Check pre-executed notebooks
0 commit comments