File tree Expand file tree Collapse file tree 2 files changed +32
-47
lines changed Expand file tree Collapse file tree 2 files changed +32
-47
lines changed Original file line number Diff line number Diff line change 6666 with :
6767 ocaml-compiler : 5
6868 - uses : ocaml/setup-ocaml/lint-opam@v3
69+
70+ hooks :
71+ runs-on : ubuntu-latest
72+
73+ steps :
74+ # Set up Python with built-in pip caching
75+ - name : Set up Python
76+ id : python
77+ uses : actions/setup-python@v6
78+ with :
79+ python-version : " 3.13"
80+
81+ # Cache pre-commit’s virtual envs + hook repos
82+ - name : Cache pre-commit envs
83+ uses : actions/cache@v4
84+ with :
85+ path : ~/.cache/pre-commit
86+ key : >
87+ ${{ format('pre-commit-{0}-{1}',
88+ steps.python.outputs.python-version,
89+ hashFiles('.pre-commit-config.yaml')) }}
90+
91+ # Install the tool itself
92+ - name : Install pre-commit
93+ run : |
94+ pip install --upgrade pip pre-commit
95+ pre-commit install
96+
97+ # Run all hooks not already handled by other workflows
98+ - name : Run hooks
99+ run : |
100+ pre-commit run --all-files --show-diff-on-failure --color=always
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments