Skip to content

Commit

Permalink
Install pre-commit before running it (mlflow#10667)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <[email protected]>
  • Loading branch information
harupy authored Dec 11, 2023
1 parent 65b9602 commit 912a2c6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,14 @@ jobs:
git remote add base https://github.com/${{ needs.check-comment.outputs.base_repo }}.git
git fetch base ${{ needs.check-comment.outputs.base_ref }}
git merge base/${{ needs.check-comment.outputs.base_ref }}
- uses: ./.github/actions/setup-python
- run: |
pip install -r requirements/lint-requirements.txt
pre-commit install
# ************************************************************************
# Prettier
# ************************************************************************
- run: |
pre-commit install
pre-commit run prettier --all-files --color=always || true
# ************************************************************************
# protos
Expand All @@ -110,11 +113,6 @@ jobs:
# ************************************************************************
# python
# ************************************************************************
- if: steps.diff.outputs.python == 'true'
uses: ./.github/actions/setup-python
- if: steps.diff.outputs.python == 'true'
run: |
pip install -r requirements/lint-requirements.txt
- if: steps.diff.outputs.python == 'true'
run: |
ruff --fix .
Expand Down

0 comments on commit 912a2c6

Please sign in to comment.