Skip to content

Commit

Permalink
Merge pull request #135 from epage/hooks
Browse files Browse the repository at this point in the history
chore: Move from CI to pre-commit
  • Loading branch information
epage committed Sep 7, 2021
2 parents b16534d + c4f8cf6 commit 036ef47
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pre-commit.yml
@@ -0,0 +1,12 @@
name: pre-commit
on:
pull_request:
push:
branches: [source]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,26 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
stages: [commit]
- id: check-json
stages: [commit]
- id: check-toml
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-case-conflict
stages: [commit]
- id: detect-private-key
stages: [commit]
- repo: https://github.com/crate-ci/typos
rev: v1.1.8
hooks:
- id: typos
stages: [commit]
- repo: https://github.com/crate-ci/committed
rev: v0.2.3
hooks:
- id: committed
stages: [commit-msg]

0 comments on commit 036ef47

Please sign in to comment.