-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.23 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
repos:
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
name: black
exclude: (dist|json|data|data_format)/
description: 'Black: The uncompromising Python code formatter'
entry: black
# args: ['--check']
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
name: flake8
exclude: (dist|json|data|data_format)/
description: 'Enforce style consistency'
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
name: isort
description: 'Sort your imports'
exclude: (dist|json|data|data_format)/
args: ['--profile', 'black']
# args: ['--check-only']
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
name: interrogate
exclude: (dist|json|data|data_format)/
description: 'Checks code base for missing docstrings'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 # Use the ref you want to point at
hooks:
- id: check-added-large-files
description: Prevents commit of files > 1 MB
args: ['--maxkb=1000']
- id: trailing-whitespace