-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.64 KB
/
.pre-commit-config.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
repos:
- repo: local
hooks:
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
language: system
- id: check-merge-conflict
name: Check for files with merge conflict strings
entry: check-merge-conflict
language: system
- id: end-of-file-fixer
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: no-commit-to-branch
name: Prevent commits to dev / master
entry: no-commit-to-branch
language: python
args: ["-b", dev, "-b", master, "-b", main]
pass_filenames: false
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
# - id: flake8
# name: flake8
# entry: flake8
# language: system
# types: [python]
# args: ["--config='{{ cookiecutter.repo_name }}/setup.cfg'"]
# require_serial: true
- repo: https://github.com/prettier/pre-commit
rev: v2.1.2
hooks:
- id: prettier
name: Prettier (mkdocs markdown)
args: ["--tab-width", "4"]
files: "^docs/.*md$"
- id: prettier
name: Prettier (other markdown)
exclude: "docs"
files: ".md"
- id: prettier
name: Prettier (except markdown)
exclude: ".md"