Skip to content

Commit e120b98

Browse files
committed
merge into cqa job
1 parent 227bcd1 commit e120b98

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/python-package.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,20 @@ jobs:
4444
run: |
4545
ruff format --check .
4646
47-
precommit_hooks:
48-
runs-on: ubuntu-latest
49-
strategy:
50-
matrix:
51-
cmd:
52-
- "end-of-file-fixer"
53-
- "trailing-whitespace"
54-
- "mixed-line-ending"
55-
steps:
56-
- uses: actions/checkout@v4
47+
- name: Ensure EOF line
48+
uses: pre-commit/[email protected]
49+
with:
50+
extra_args: end-of-file-fixer --all-files
5751

58-
- name: Set up Python 3.12
59-
uses: actions/setup-python@v5
60-
with:
61-
python-version: 3.12
52+
- name: Fix trailing whitespace
53+
uses: pre-commit/[email protected]
54+
with:
55+
extra_args: trailing-whitespace --all-files
6256

63-
- uses: pre-commit/[email protected]
64-
with:
65-
extra_args: ${{ matrix.cmd }} --all-files
57+
- name: Fix mixed line endings
58+
uses: pre-commit/[email protected]
59+
with:
60+
extra_args: mixed-line-ending --all-files
6661

6762
test:
6863
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)