mirror of
https://github.com/unixorn/awesome-zsh-plugins
synced 2024-11-10 04:24:11 +00:00
Add pre-commit workflow
Use pre-commit to enforce some of our checks on PRs Signed-off-by: Joe Block <jpb@unixorn.net>
This commit is contained in:
parent
c5c5e6b6e0
commit
69b2cf71da
2 changed files with 34 additions and 0 deletions
14
.github/workflows/pre-commit.yml
vendored
Normal file
14
.github/workflows/pre-commit.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: pre-commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v3
|
||||
- uses: pre-commit/action@v3.0.0
|
20
.pre-commit-config.yaml
Normal file
20
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- id: forbid-submodules
|
||||
- id: mixed-line-ending
|
||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||
rev: v0.35.0
|
||||
hooks:
|
||||
- id: markdownlint-fix
|
||||
args: ["--ignore", "LICENSE.md"]
|
||||
- repo: https://github.com/thlorenz/doctoc
|
||||
rev: v2.2.0
|
||||
hooks:
|
||||
- id: doctoc
|
||||
args: ["--update-only"]
|
Loading…
Reference in a new issue