Skip to content

Commit

Permalink
git checkout before pre-commit (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Feb 20, 2025
1 parent 4c649d6 commit 004a2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- run: echo "UV_PROJECT_ENVIRONMENT=$(python -c "import sysconfig; print(sysconfig.get_config_var('prefix'))")" >> $GITHUB_ENV
- run: uv python pin ${{ matrix.python-version }} # uv requires .python-version to match OS Python: https://github.com/astral-sh/uv/issues/11389
- run: uv sync --python-preference only-system
- run: git checkout .python-version # For clean git diff given `pre-commit run --show-diff-on-failure`
- uses: pre-commit/[email protected]
- run: git checkout .python-version
- uses: pre-commit-ci/[email protected]
if: always()
lint:
Expand Down

0 comments on commit 004a2a8

Please sign in to comment.