Skip to content

Commit

Permalink
chore: add pre-commit ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed May 24, 2024
1 parent 68d3662 commit 76074f6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/validation_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,20 @@ jobs:
run: git --no-pager grep "<<<<<<<" ":(exclude).github/" || true
- name: Fail or succeed job if any files with merge conflict markers
run: exit $(git grep "<<<<<<<" ":(exclude).github/" | wc --lines)

pre-commit:
name: Pre-commit checks
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup/poetry
with:
os: ${{ job.os }}
python-version: '3.11'
poetry-install-options: "--only=misc"
poetry-export-options: "--only=misc"
- name: Run pre-commit checks
run: poetry run pre-commit run --all-files
...

0 comments on commit 76074f6

Please sign in to comment.