Run pre-commit in pull_request GHA workflow
@@ -13,16 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- - name: Set up Python 3.7
- uses: actions/setup-python@v1
+ - uses: actions/setup-python@v1
+ - uses: pre-commit/action@v2.0.0
with:
- python-version: 3.7
- - name: Install dependencies
- run: |
- pip install flake8 flake8-black
- - name: Run flake8
- run: |
- flake8 .
+ extra_args: --all-files --show-diff-on-failure
test:
name: Testing
