@@ -43,29 +43,33 @@ jobs:
43
43
44
44
precommit_hooks :
45
45
runs-on : ubuntu-latest
46
- strategy :
47
- matrix :
48
- hook :
49
- - cmd : " end-of-file-fixer"
50
- - cmd : " trailing-whitespace"
51
- - cmd : " mixed-line-ending"
52
46
steps :
53
47
- uses : actions/checkout@v4
54
- - uses : actions/cache@v4
55
- with :
56
- path : ~/.cache/pip
57
- key : ${{ runner.os }}-pip-precommit-${{ hashFiles('pyproject.toml') }}
58
- restore-keys : |
59
- ${{ runner.os }}-pip-
60
- - name : Set up Python 3.12
61
- uses : actions/setup-python@v5
62
- with :
63
- python-version : 3.12
64
- - name : Update pip and setuptools
65
- run : |
66
- python -m pip install --upgrade pip setuptools
67
- - name : Install dependencies
68
- run : |
69
- pip install -e .[dev]
70
- - name : Run pre-commit ${{ matrix.hook.cmd }} hook
71
- run : pre-commit run ${{ matrix.hook.cmd }} --all-files
48
+ - uses : actions/setup-python@v5
49
+ -
uses :
pre-commit/[email protected]
50
+ # strategy:
51
+ # matrix:
52
+ # hook:
53
+ # - cmd: "end-of-file-fixer"
54
+ # - cmd: "trailing-whitespace"
55
+ # - cmd: "mixed-line-ending"
56
+ # steps:
57
+ # - uses: actions/checkout@v4
58
+ # - uses: actions/cache@v4
59
+ # with:
60
+ # path: ~/.cache/pip
61
+ # key: ${{ runner.os }}-pip-precommit-${{ hashFiles('pyproject.toml') }}
62
+ # restore-keys: |
63
+ # ${{ runner.os }}-pip-
64
+ # - name: Set up Python 3.12
65
+ # uses: actions/setup-python@v5
66
+ # with:
67
+ # python-version: 3.12
68
+ # - name: Update pip and setuptools
69
+ # run: |
70
+ # python -m pip install --upgrade pip setuptools
71
+ # - name: Install dependencies
72
+ # run: |
73
+ # pip install -e .[dev]
74
+ # - name: Run pre-commit ${{ matrix.hook.cmd }} hook
75
+ # run: pre-commit run ${{ matrix.hook.cmd }} --all-files
0 commit comments