Skip to content

Commit a24b456

Browse files
committed
workflows: open-code pre-commit check
The pre-commit action is in maintenance mode, and is easily replicated. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 6ed0fe0 commit a24b456

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/python.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,15 @@ jobs:
2727
uses: actions/setup-python@v6
2828
with:
2929
python-version: '3.13'
30+
- name: Install dependencies
31+
run: python -m pip install pre-commit
32+
- name: Cache pre-commit environments
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.cache/pre-commit
36+
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
3037
- name: Run pre-commit hooks
31-
uses: pre-commit/[email protected]
38+
run: pre-commit run -a --show-diff-on-failure --color=always
3239
- name: Define artifact paths
3340
id: paths
3441
run: |

0 commit comments

Comments
 (0)