Skip to content

Commit 774c3f8

Browse files
committed
ci(pre-commit): add pre-commit-config
1 parent 38b7861 commit 774c3f8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: .pre-commit-config.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
default_stages: [push]
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v3.1.0
5+
hooks:
6+
- id: check-vcs-permalinks
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
args: [--markdown-linebreak-ext=md]
10+
- id: debug-statements
11+
- id: no-commit-to-branch
12+
- repo: local
13+
hooks:
14+
- id: reformat
15+
name: reformat
16+
language: system
17+
pass_filenames: false
18+
entry: ./scripts/reformat
19+
types: [python]
20+
21+
- id: linter and test
22+
name: linter and test
23+
language: system
24+
pass_filenames: false
25+
entry: ./scripts/test
26+
types: [python]

0 commit comments

Comments
 (0)