forked from speechbrain/speechbrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
57 lines (52 loc) · 1.61 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
types: [file, text]
- id: end-of-file-fixer
types: [python]
- id: requirements-txt-fixer
- id: mixed-line-ending
types: [python]
args: [--fix=no]
- id: check-added-large-files
args: [--maxkb=1024]
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
types: [python]
additional_dependencies: ['click==8.1.7']
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
types: [python]
additional_dependencies:
- pydoclint==0.4.1
- pycodestyle==2.11.0
- flake8-encodings==0.5.1
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args:
- "--ignore-words=.dict-speechbrain.txt"
# skip jupyter notebook as there isn't a good way to only match inputs
# at the moment. manually fixing up outputs would be a pain and we
# cannot always expect to regex them out.
- "--skip=*.ipynb"
# for ipynb inline base64 -- although this isn't very useful since we
# are disabling support for ipynb for now
- "--ignore-regex='base64,.*?=='"
additional_dependencies:
- tomli
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort