|
a |
|
b/.pre-commit-config.yaml |
|
|
1 |
repos: |
|
|
2 |
- repo: https://gitlab.com/pycqa/flake8.git |
|
|
3 |
rev: 3.8.3 |
|
|
4 |
hooks: |
|
|
5 |
- id: flake8 |
|
|
6 |
- repo: https://github.com/asottile/seed-isort-config |
|
|
7 |
rev: v2.2.0 |
|
|
8 |
hooks: |
|
|
9 |
- id: seed-isort-config |
|
|
10 |
args: ["--exclude", ".dev"] |
|
|
11 |
- repo: https://github.com/timothycrosley/isort |
|
|
12 |
rev: 4.3.21 |
|
|
13 |
hooks: |
|
|
14 |
- id: isort |
|
|
15 |
- repo: https://github.com/pre-commit/mirrors-yapf |
|
|
16 |
rev: v0.30.0 |
|
|
17 |
hooks: |
|
|
18 |
- id: yapf |
|
|
19 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
|
|
20 |
rev: v3.1.0 |
|
|
21 |
hooks: |
|
|
22 |
- id: trailing-whitespace |
|
|
23 |
- id: check-yaml |
|
|
24 |
- id: end-of-file-fixer |
|
|
25 |
- id: requirements-txt-fixer |
|
|
26 |
- id: double-quote-string-fixer |
|
|
27 |
- id: check-merge-conflict |
|
|
28 |
- id: fix-encoding-pragma |
|
|
29 |
args: ["--remove"] |
|
|
30 |
- id: mixed-line-ending |
|
|
31 |
args: ["--fix=lf"] |
|
|
32 |
- repo: https://github.com/markdownlint/markdownlint |
|
|
33 |
rev: v0.11.0 |
|
|
34 |
hooks: |
|
|
35 |
- id: markdownlint |
|
|
36 |
args: ["-r", "~MD002,~MD013,~MD029,~MD033,~MD034", |
|
|
37 |
"-t", "allow_different_nesting"] |
|
|
38 |
- repo: https://github.com/codespell-project/codespell |
|
|
39 |
rev: v2.1.0 |
|
|
40 |
hooks: |
|
|
41 |
- id: codespell |
|
|
42 |
- repo: https://github.com/myint/docformatter |
|
|
43 |
rev: v1.3.1 |
|
|
44 |
hooks: |
|
|
45 |
- id: docformatter |
|
|
46 |
args: ["--in-place", "--wrap-descriptions", "79"] |
|
|
47 |
- repo: local |
|
|
48 |
hooks: |
|
|
49 |
- id: update-model-index |
|
|
50 |
name: update-model-index |
|
|
51 |
description: Collect model information and update model-index.yml |
|
|
52 |
entry: .dev/md2yml.py |
|
|
53 |
additional_dependencies: [mmcv, lxml] |
|
|
54 |
language: python |
|
|
55 |
files: ^configs/.*\.md$ |
|
|
56 |
require_serial: true |