Skip to content

Commit

Permalink
Add workflows for automatic pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf-meyer committed Apr 27, 2023
1 parent 544c270 commit 224debe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
pull_request:
push:
branches:
- "master"
- "main"

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.0
- uses: pre-commit-ci/lite-action@v1.0.1
if: always()
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ci:
autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit hooks'
autofix_prs: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
Expand Down

0 comments on commit 224debe

Please sign in to comment.