-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
42 lines (40 loc) · 1.13 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
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=3000']
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
#- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: name-tests-test
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: detect-aws-credentials
#- id: double-quote-string-fixer
- id: check-symlinks
- id: requirements-txt-fixer
#- id: python-use-type-annotations
- id: end-of-file-fixer
- id: pretty-format-json
- id: requirements-txt-fixer
#- id: shellcheck
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/ambv/black
rev: 20.8b0
hooks:
- id: black
args: ['-l 120']
- repo: https://github.com/timothycrosley/isort
rev: 5.9.3
hooks:
- id: isort
args: ['--profile', 'black']