Skip to content

Commit ba94be9

Browse files
committed
🧪💅 Pre-fetch pre-commit hooks via tox exec
1 parent 58d37bd commit ba94be9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/reusable-tox.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,13 @@ jobs:
302302
- name: Initialize pre-commit envs if needed
303303
if: inputs.toxenv == 'pre-commit'
304304
run: >-
305-
.tox/${{ inputs.toxenv }}/bin/python -Im pre_commit install-hooks
305+
python -Im
306+
tox
307+
exec
308+
--skip-pkg-install
309+
--quiet
310+
--
311+
python -Im pre_commit install-hooks
306312
- name: >-
307313
Run tox envs: `${{ env.TOXENV }}`
308314
id: tox-run

0 commit comments

Comments
 (0)