Skip to content

Commit 7e2b6bf

Browse files
authored
chore: fix pre-commit entry point commands (#1348)
Wrapping the entry point commands within bash shell to ensure the commands execute correctly across all systems.
1 parent 77c2576 commit 7e2b6bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ repos:
77
name: black
88
language: system
99
types: [python]
10-
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:black --
10+
entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:black -- "$@"'
1111
- id: isort
1212
name: isort
1313
language: system
1414
types: [python]
15-
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:isort --
15+
entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:isort -- "$@"'
1616
- id: ruff
1717
name: ruff
1818
language: system
1919
types: [python]
20-
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:ruff --
20+
entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:ruff -- "$@"'
2121
- id: flake8
2222
name: flake8
2323
language: system
2424
types: [python]
25-
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:flake8 --
25+
entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:flake8 -- "$@"'
2626
- id: migrations
2727
name: migrations
2828
language: system
2929
types: [python]
3030
pass_filenames: false
31-
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:migrations
31+
entry: bash -c 'command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:migrations'
3232
- repo: https://github.com/python-poetry/poetry
33-
rev: '2.0.1'
33+
rev: '2.1.3'
3434
hooks:
3535
- id: poetry-check
3636
- id: poetry-lock

0 commit comments

Comments
 (0)