Skip to content

Commit

Permalink
CI: add pre-commit on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LinjingZhang authored and ederjc committed Dec 19, 2024
1 parent 3f5cfa5 commit d7004f5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pre-commit checks

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install pre-commit
run: pip install pre-commit

- name: Run pre-commit
run: pre-commit run --all-files

0 comments on commit d7004f5

Please sign in to comment.