Skip to content

Commit d12adf2

Browse files
committed
Add pre-commit hooks and github workflow to run them
1 parent 4d208b4 commit d12adf2

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/workflows/pre-commit.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
- uses: pre-commit/action@v3.0.0

‎.pre-commit-config.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
9+
- repo: https://github.com/streetsidesoftware/cspell-cli
10+
rev: v6.14.0
11+
hooks:
12+
- id: cspell
13+
files: docs/(.+).md|README.md

0 commit comments

Comments
 (0)