Skip to content

Commit

Permalink
ci: add pre-commit to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Realiserad committed Mar 19, 2024
1 parent 0499ed2 commit 762b850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-tapes.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Test tapes
on:
pull_request:
push:
branches:
- main
jobs:
azure-openai:
runs-on: ubuntu-latest
if: "${{ !startsWith(github.event.head_commit.message, 'docs: ') && !startsWith(github.event.head_commit.message, 'chore: ') }}"
if: "${{ !startsWith(github.event.head_commit.message, 'docs: ') && !startsWith(github.event.head_commit.message, 'chore: ') && !startsWith(github.event.head_commit.message, 'style: ') }}"
steps:
- uses: actions/checkout@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ repos:
rev: '7.0.0'
hooks:
- id: flake8
ci:
autofix_commit_msg: 'style: modified by hook'
autoupdate_commit_msg: 'ci: pre-commit autoupdate'

0 comments on commit 762b850

Please sign in to comment.