Updated the github action to run all pre-commit hooks on all files in the linter stage so that there is only 1 place that is used to maange all code quality tools.
@@ -16,7 +16,7 @@ on:
jobs:
- flake8:
+ linter:
runs-on: ubuntu-latest
steps:
@@ -28,13 +28,13 @@ jobs:
with:
python-version: 3.8
- - name: Install flake8
+ - name: Install flake8, flake8-isort, and black
run: |
python -m pip install --upgrade pip
- pip install flake8
+ pip install flake8 flake8-isort black
- - name: Lint with flake8
- run: flake8
+ - name: Install and Run Pre-commit
+ uses: pre-commit/action@v2.0.0
# With no caching at all the entire ci process takes 4m 30s to complete!
pytest:
