From 7a4bb1ad64d14f5e9d58d1aa834b6153983aff17 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Tue, 29 Oct 2024 15:51:00 -0400 Subject: [PATCH] rename --- .../.github/workflows/checks.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml b/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml index 72f3c58..debb42b 100644 --- a/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml +++ b/python/{{cookiecutter.project_slug}}/.github/workflows/checks.yaml @@ -44,12 +44,9 @@ jobs: strategy: matrix: hook: - - name: "Check EOF format" - args: "end-of-file-fixer" - - name: "Check trailing whitespace" - args: "trailing-whitespace" - - name: "Check line ending format" - args: "mixed-line-ending" + - cmd: "end-of-file-fixer" + - cmd: "trailing-whitespace" + - cmd: "mixed-line-ending" steps: - uses: actions/checkout@v4 @@ -62,8 +59,8 @@ jobs: run: | python3 -m pip install ".[dev]" - - name: {{ "${{ matrix.hook.name }}" }} - run: pre-commit run {{ "${{ matrix.hook.args }}" }} --all-files + - name: Run pre-commit {{ "${{ matrix.hook.cmd }}" }} hook + run: pre-commit run {{ "${{ matrix.hook.cmd }}" }} --all-files {% if cookiecutter.add_docs %} docs: