-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
96 lines (85 loc) · 2.43 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
repos:
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: autoflake
description: remove unused imports and unused variables
language: python
types: [python]
args: [
--in-place,
--ignore-init-module-imports,
--remove-all-unused-imports,
--recursive,
]
- id: isort
name: isort
entry: isort
description: sort imports
language: python
types: [python]
args: [
--filter-files,
--remove-redundant-aliases,
]
- id: black
name: black
entry: black
description: format Python code
language: python
types: [python]
- id: black-jupyter
name: black-jupyter
entry: black
description: format Python code in notebooks
language: python
types: [jupyter]
- id: flake8
name: flake8
entry: flake8
description: tool for style guide enforcement
language: python
types: [python]
- id: check-case-conflict
name: check-case-conflict
entry: check-case-conflict
description: check for files with names that would conflict on a case-insensitive filesystem
language: python
types: [text]
- id: check-json
name: check-json
entry: check-json
description: verify JSON syntax
language: python
types: [json]
- id: check-toml
name: check-toml
entry: check-toml
description: verify TOML syntax
language: python
types: [toml]
- id: check-yaml
name: check-yaml
entry: check-yaml
description: verify YAML syntax
language: python
types: [yaml]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
description: makes sure files end in a newline and only a newline
language: python
types: [text]
- id: requirements-txt-fixer
name: requirements-txt-fixer
entry: requirements-txt-fixer
description: sorts entries in requirements.txt
language: python
files: requirements.*\.txt$
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: trailing-whitespace-fixer
description: trim trailing whitespace
language: python
types: [text]