Skip to content

Commit

Permalink
Add pre-commit.ci config.
Browse files Browse the repository at this point in the history
Add pre-commit config for GitHub Actions CI.
  • Loading branch information
Alexei95 committed Mar 12, 2022
1 parent 4a5feb3 commit c732da3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pre-commit-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pre-commit-ci

# we run pre-commit only on push
on:
- push

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# to have unlimited depth for pushing
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
# to allow pushing
with:
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,16 @@ repos:
# dependencies available
--ignore-missing-imports
]


# continuous integration configuration for pre-commit.ci
# freely available to open-source repositories
# it will not be run until we are open-source
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit hooks
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

0 comments on commit c732da3

Please sign in to comment.