-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
43 lines (36 loc) · 983 Bytes
/
.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
exclude: '^docs/conf.py'
repos:
#- repo: https://github.com/pre-commit/mirrors-isort
# rev: v4.3.17 # Use the revision sha / tag you want to point at
# hooks:
# - id: isort
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
sha: v1.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v1.3.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: fix-encoding-pragma
- id: mixed-line-ending
args: ['--fix=no']
- id: flake8
- id: no-commit-to-branch
args: [--branch, master]