Insighttful
12/07/2023, 6:51 PMcloudposse/github-action-pre-commit docs:
By default, all hooks are run.
Here's a sample step configuration that only runs the flake8 hook against all the files (use the template above except for the pre-commit action):
- uses: cloudposse/github-action-pre-commit@v3.0.0
with:
extra_args: flake8 --all-files
How to run multiple hooks, BUT NOT a single hook OR all hooks?
This fails:
- uses: cloudposse/github-action-pre-commit@v3.0.0
with:
extra_args: black mypy isort flake8 --all-filesRB
12/08/2023, 1:14 PMRB
12/08/2023, 1:15 PMjobs:
precommit:
steps:
- use: actions/checkout@v4
- run: |
pre-commit run flake8
# another action that pushes up changes if any changes existInsighttful
12/08/2023, 4:46 PMRB
12/08/2023, 4:47 PM