Skip to content

Commit ac55116

Browse files
committed
pre-commit: remove redundant zizmor config
1 parent 44271c4 commit ac55116

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/actions/bootstrap-poetry/action.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ runs:
3232
allow-prereleases: true
3333
update-environment: false
3434

35-
- run: >
36-
pipx install \
37-
${{ inputs.python-version != 'default' && format('--python "{0}"', steps.setup-python.outputs.python-path) || '' }} \
38-
'${{ inputs.poetry-spec }}'
35+
- run: pipx install ${PYTHON_PATH:+--python "$PYTHON_PATH"} "${POETRY_SPEC}"
3936
shell: bash
37+
env:
38+
PYTHON_PATH: ${{ inputs.python-version != 'default' && steps.setup-python.outputs.python-path || '' }}
39+
POETRY_SPEC: ${{ inputs.poetry-spec }}
4040

4141
# Enable handling long path names (+260 char) on the Windows platform
4242
# https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation

.github/actions/poetry-install/action.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ runs:
4040
poetry-${{ steps.get-date.outputs.date }}-
4141
enableCrossOsArchive: true
4242

43-
- run: poetry install ${{ inputs.args }}
43+
- run: poetry install ${ARGS}
4444
shell: bash
45+
env:
46+
ARGS: ${{ inputs.args }}
4547

4648
- run: poetry env info
4749
shell: bash

.pre-commit-config.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@ repos:
3737
rev: v1.5.2
3838
hooks:
3939
- id: zizmor
40-
# types and files can be removed with https://github.com/woodruffw/zizmor-pre-commit/pull/2
41-
types: [yaml]
42-
files: \.github/workflows/.*$

0 commit comments

Comments
 (0)