Skip to content

Commit 91cba5e

Browse files
committed
clean up pre-commit in ci
1 parent 8aaceb6 commit 91cba5e

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,20 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
# Run "pre-commit run --all-files"
13+
# Run "pre-commit run --all-files --hook-stage=manual"
1414
pre-commit:
1515
name: Run pre-commit hook
16-
1716
runs-on: ubuntu-latest
18-
timeout-minutes: 2
19-
20-
env:
21-
PYTHON_VERSION: 3.8
22-
17+
timeout-minutes: 5
2318
steps:
2419
- name: Checkout
2520
uses: actions/checkout@v2
26-
27-
- name: Set up Python ${{ env.PYTHON_VERSION }}
28-
uses: actions/setup-python@v2
29-
with:
30-
python-version: ${{ env.PYTHON_VERSION }}
31-
21+
- name: Set up Python
22+
uses: actions/setup-python@v3
3223
- name: Run pre-commit
3324
uses: pre-commit/[email protected]
34-
25+
with:
26+
extra_args: --all-files --hook-stage=manual
3527
- name: Help message if pre-commit fail
3628
if: ${{ failure() }}
3729
run: |

0 commit comments

Comments
 (0)