Skip to content

Commit

Permalink
chore: pre-commit checks workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GriceTurrble committed Dec 11, 2023
1 parent 805422d commit 43efa82
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pre-commit checks

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
PIP_CACHE_DIR: /tmp/pip-cache-dir
PYTHON_VERSION: "3.12"

jobs:
pre-commit:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: pre-commit/[email protected]
with:
extra_args: --all-files

0 comments on commit 43efa82

Please sign in to comment.