Skip to content

Commit 01fe78f

Browse files
committed
Revert "fix: get poetry to use the same python version as pre-commit"
This reverts commit 7566816.
1 parent 813c287 commit 01fe78f

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

action.yaml

+1-16
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,13 @@ runs:
4848
# This will set an environment variable we can use to conditionally
4949
# install pre-commit if needed and toggle how the action runs.
5050
echo "PRE_COMMIT_BIN=$(command -v pre-commit)" >> $GITHUB_ENV
51-
- name: Find poetry
52-
shell: bash
53-
run: |
54-
# Finding poetry
55-
# This will set an environment variable we can use to conditionally
56-
# install poetry.
57-
echo "POETRY_BIN=$(command -v poetry)" >> $GITHUB_ENV
5851
- name: Find python
5952
shell: bash
6053
run: |
6154
# Finding python
6255
# This will set an environment variable we can use to conditionally
6356
# install python.
6457
echo "PYTHON_BIN=$(command -v python)" >> $GITHUB_ENV
65-
echo "PYTHON_VERSION_SET=$(pyenv version-name)" >> $GITHUB_ENV
66-
#add as debug the python versions and
6758
- name: Setup python
6859
# Only run this if we don't already have a pre-commit on the PATH
6960
if: env.PYTHON_BIN == null
@@ -174,17 +165,11 @@ runs:
174165
uses: pre-commit/action@v3.0.0
175166
with:
176167
extra_args: ${{ env.PRE_COMMIT_FILES }}
177-
- name: Set poetry env to match python version
178-
if: env.POETRY_BIN != null
179-
shell: bash
180-
run: |
181-
poetry env use ${{ env.PYTHON_VERSION_SET }}
182168
- name: Pre-commit
183169
# Run pre-commit directly if we found it on the PATH
184170
if: env.PRE_COMMIT_BIN != null
185171
shell: bash
186-
run: |
187-
pre-commit run --show-diff-on-failure --color=always ${{ env.PRE_COMMIT_FILES }}
172+
run: pre-commit run --show-diff-on-failure --color=always ${{ env.PRE_COMMIT_FILES }}
188173
- name: Clean up
189174
# Delete the python version file if we created it
190175
if: steps.create-python-version-file.outputs.file-created == 'true'

0 commit comments

Comments
 (0)