Update flake8 action to use pre-commit
@@ -24,9 +24,9 @@ jobs:
run: |
! git --no-pager grep --color --line-number --full-name --extended-regexp -I '\s+$'
- lint-flake8:
+ lint-pre-commit:
runs-on: ubuntu-latest
- name: flake8
+ name: pre-commit
strategy:
fail-fast: false
matrix:
@@ -37,10 +37,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- - name: flake8
+ - name: pre-commit
run: |
- pip install flake8
- flake8
+ pip install pre-commit
+ pre-commit run -a
clang-format-lint:
runs-on: ubuntu-latest
