-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.57 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
58
59
60
61
62
63
64
65
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-docstring-first
- id: check-toml
- id: check-yaml
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
exclude: data/.*
- repo: https://github.com/hhatto/autopep8
rev: v2.1.0
hooks:
- id: autopep8
args: [--in-place, --aggressive, --exit-code]
types: [python]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"--max-line-length=120",
"--errors-only",
]
- id: pylint
alias: pylint-all
name: pylint-all
entry: pylint
language: system
types: [python]
args:
[
"--max-line-length=120",
]
stages: [manual]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--config=setup.cfg]
additional_dependencies:
- flake8-bugbear==22.10.27
- flake8-comprehensions==3.10.1
- torchfix==0.0.2
- repo: https://github.com/facebook/usort
rev: v1.0.7
hooks:
- id: usort
name: Sort imports with µsort
description: Safe, minimal import sorting
language: python
types_or:
- python
- pyi
entry: usort format
require_serial: true