Skip to content

Commit 59115d8

Browse files
committed
Adds pre-commit checks
1 parent 8992508 commit 59115d8

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/check.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Check
3+
4+
on:
5+
pull_request:
6+
push:
7+
8+
jobs:
9+
Pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v1
14+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
repos:
3+
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.1.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-ast
9+
- id: check-byte-order-marker
10+
- id: check-case-conflict
11+
- id: check-docstring-first
12+
- id: check-executables-have-shebangs
13+
- id: check-json
14+
- id: check-merge-conflict
15+
- id: check-yaml
16+
- id: end-of-file-fixer
17+
- id: sort-simple-yaml
18+
- id: trailing-whitespace
19+
20+
- repo: https://github.com/igorshubovych/markdownlint-cli.git
21+
rev: v0.23.1
22+
hooks:
23+
- id: markdownlint
24+
25+
- repo: https://github.com/adrienverge/yamllint.git
26+
rev: v1.23.0
27+
hooks:
28+
- id: yamllint
29+
args: ["-c", ".yamllint", "-s"]

0 commit comments

Comments
 (0)