Skip to content

Commit

Permalink
cicd(python): refine precommit check (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Oct 31, 2024
1 parent 752536b commit 8f74e3a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
hook:
- name: "Check EOF format"
args: "end-of-file-fixer --all-files"
- name: "Check trailing whitespace"
args: "trailing-whitespace --all-files"
- name: "Check line ending format"
args: "mixed-line-ending --fix=lf --all-files"
- cmd: "end-of-file-fixer"
- cmd: "trailing-whitespace"
- cmd: "mixed-line-ending"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: {{ "${{ matrix.hook.name }}" }}
uses: pre-commit/[email protected]
- uses: pre-commit/[email protected]
with:
extra_args: {{ "${{ matrix.hook.args }}" }}
extra_args: {{ "${{ matrix.cmd }}" }} --all-files

{% if cookiecutter.add_docs %}
docs:
Expand Down

0 comments on commit 8f74e3a

Please sign in to comment.