-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (38 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (38 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
default_stages: [ pre-push ]
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-merge-conflict
- id: check-added-large-files
- id: detect-private-key
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-docstring-first
- id: pretty-format-json
args: [ --autofix, --no-sort-keys ]
- repo: local
hooks:
- id: format
name: Format the code
entry: make format
language: system
pass_filenames: false
stages: [ pre-commit ]
- id: lint
name: Check code style
entry: make lint
language: system
pass_filenames: false
stages: [ pre-commit ]
- id: test
name: Run the tests
entry: make test
language: system
pass_filenames: false