From 601ff917bcf49b25da7bd3fdfd92d30f2438f13b Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Thu, 8 Aug 2024 13:47:27 -0400 Subject: [PATCH] fix(cicd): generate correctly formatted ruff value for precommit (#55) --- .github/workflows/update-python.yaml | 2 +- python/{{cookiecutter.project_slug}}/.pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-python.yaml b/.github/workflows/update-python.yaml index 8e65e67..3105ffa 100644 --- a/.github/workflows/update-python.yaml +++ b/.github/workflows/update-python.yaml @@ -40,7 +40,7 @@ jobs: - name: Update Ruff version in .pre-commit-config.yaml run: | - sed -i "s/rev: .* # ruff version/rev: ${{ env.RUFF_VERSION }} # ruff version/" ${{ env.PYTHON_TEMPLATE_LOCATION }}/.pre-commit-config.yaml + sed -i "s/rev: .* # ruff version/rev: v${{ env.RUFF_VERSION }} # ruff version/" ${{ env.PYTHON_TEMPLATE_LOCATION }}/.pre-commit-config.yaml - name: Create new branch for changes run: | diff --git a/python/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/python/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 6583b8f..0ea2558 100644 --- a/python/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/python/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: detect-aws-credentials args: [ --allow-missing-credentials ] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 0.5.0 # ruff version + rev: v0.5.0 # ruff version hooks: - id: ruff-format - id: ruff