Skip to content

Commit 8127daf

Browse files
committed
Run pre-commit in github CI
1 parent 405e5b7 commit 8127daf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/Test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
pip install . pytest pytest-md pytest-emoji flake8
41+
pip install . pytest pytest-md pytest-emoji pre-commit
4242
4343
- name: Set timezone
4444
uses: szenius/[email protected]
4545
with:
4646
timezoneLinux: 'Europe/Berlin'
4747

48-
- name: Lint with flake8
49-
run: |
50-
flake8 . --count --statistics
48+
- name: Run pre-commit linters
49+
run: 'pre-commit run --all-files'
5150

5251
- name: Run pytest
5352
uses: pavelzw/pytest-action@v2

0 commit comments

Comments
 (0)