forked from modelscope/AdaSeq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (36 loc) · 1.06 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: experiments/|tools/
- id: check-yaml
exclude: experiments/|tools/
- id: end-of-file-fixer
exclude: experiments/|tools/
- id: requirements-txt-fixer
exclude: experiments/|tools/
- id: double-quote-string-fixer
exclude: experiments/|tools/
- id: check-merge-conflict
exclude: experiments/|tools/
- id: fix-encoding-pragma
exclude: experiments/|tools/
args: ["--remove"]
- id: mixed-line-ending
exclude: experiments/|tools/
args: ["--fix=lf"]
- repo: https://github.com/PyCQA/isort.git
rev: 5.11.5
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8.git
rev: 5.0.4
hooks:
- id: flake8
exclude: configs/|examples/|experiments/|tools/|tests/
additional_dependencies: [flake8-docstrings]