From 27aafc9b00b0851433f2f7ba1b8f4f16e46744fb Mon Sep 17 00:00:00 2001 From: Tom Tuffin Date: Fri, 13 Jun 2025 11:54:23 +0200 Subject: [PATCH] chore: fix pre-commit entry point commands Wrapping the entry point commands within bash shell to ensure the commands execute correctly across all systems. Also update poetry used in pre-commit to 2.1.3. --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd552bbb5..b96be79fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,30 +7,30 @@ repos: name: black language: system types: [python] - entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:black -- + entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:black -- "$@"' - id: isort name: isort language: system types: [python] - entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:isort -- + entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:isort -- "$@"' - id: ruff name: ruff language: system types: [python] - entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:ruff -- + entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:ruff -- "$@"' - id: flake8 name: flake8 language: system types: [python] - entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:flake8 -- + entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:flake8 -- "$@"' - id: migrations name: migrations language: system types: [python] pass_filenames: false - entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:migrations + entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:migrations' - repo: https://github.com/python-poetry/poetry - rev: '2.0.1' + rev: '2.1.3' hooks: - id: poetry-check - id: poetry-lock