diff --git a/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml b/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml index 16dbfc2..6355166 100644 --- a/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml +++ b/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml @@ -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/action@v3.0.1 + - uses: pre-commit/action@v3.0.1 with: - extra_args: {{ "${{ matrix.hook.args }}" }} + extra_args: {{ "${{ matrix.cmd }}" }} --all-files {% if cookiecutter.add_docs %} docs: