File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# specific language governing permissions and limitations
1616# under the License.
1717
18+ ---
19+ # https://github.com/j178/prek
1820name : pre-commit
1921
2022on : [pull_request]
2123
2224permissions :
2325 contents : read
2426
25- concurrency :
26- group : ${{ github.workflow }}-${{ github.ref }}
27- cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
28-
2927jobs :
3028 pre-commit :
3129 name : Run pre-commit
3533 uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3634 with :
3735 persist-credentials : false
38- - name : Setup Python
39- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
40- with :
41- python-version : ' 3.13'
42- architecture : ' x64'
43- - name : Install dependencies
44- run : |
45- python -m pip install --upgrade pip
46- pip install pre-commit
47- - name : set PY
48- run : echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
49- - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
36+ - uses : j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4
5037 with :
51- path : ~/.cache/pre-commit
52- key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
53- - name : Run pre-commit
54- run : pre-commit run --all-files
38+ extra-args : --all-files
You can’t perform that action at this time.
0 commit comments