Skip to content

Commit

Permalink
Add a pre-commit action
Browse files Browse the repository at this point in the history
  • Loading branch information
Armavica committed Jan 28, 2024
1 parent afb4932 commit c3653f9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pre-commit

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

env:
CARGO_TERM_COLOR: always

jobs:
pre-commit:
runs-on: ubuntu-latest
env:
SKIP: no-commit-to-branch
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: # run pre-commit on our oldest supported python version
python-version: 3.9
- uses: pre-commit/[email protected]

0 comments on commit c3653f9

Please sign in to comment.