-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
.pre-commit-config.yaml
35 lines (32 loc) · 1.01 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
repos:
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
- id: black
args: [--line-length=80]
additional_dependencies: ['click==8.0.1']
exclude: valle\/__init__\.py
exclude: valle\/utils\/symbol_table\.py
exclude: valle\/modules\/scaling\.py
exclude: valle\/tests\/data\/tokenizer\_test\.py
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [--max-line-length=80]
exclude: valle\/modules\/scaling\.py
exclude: valle\/tests\/data\/tokenizer\_test\.py
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [--profile=black, --line-length=80]
exclude: valle\/utils\/symbol_table\.py
exclude: valle\/modules\/scaling\.py
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-executables-have-shebangs
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace