diff options
author | 2021-01-09 13:35:14 -0800 | |
---|---|---|
committer | 2021-01-09 19:18:05 -0800 | |
commit | 5795aedc3bd33e1be3fc223d22d5941c14db0b2f (patch) | |
tree | e2c2a36d7c352b9ae9e54475fa96081b5f996d0b | |
parent | CI: improve readability of some run commands (diff) |
CI: run pre-commit hooks
-rw-r--r-- | .github/workflows/lint-test-build-push.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/lint-test-build-push.yaml b/.github/workflows/lint-test-build-push.yaml index 46f8749..a08c232 100644 --- a/.github/workflows/lint-test-build-push.yaml +++ b/.github/workflows/lint-test-build-push.yaml @@ -102,6 +102,12 @@ jobs: docker exec snekbox_test /bin/bash -c 'pipenv install --system --deploy --dev && pip install numpy' + # Skip the flake8 hook because the following step will run it. + - name: Run pre-commit hooks + run: >- + docker exec snekbox_test /bin/bash -c + 'SKIP=flake8 pre-commit run --all-files' + # This runs `flake8` in the container and asks `flake8` to output # linting errors in the format of the command for registering workflow # error messages/annotations. This means that Github Actions will pick |