-
Notifications
You must be signed in to change notification settings - Fork 129
/
.pre-commit-config.yaml
28 lines (24 loc) · 841 Bytes
/
.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
exclude: "setup.py|torchlie/setup.py|torchkin/setup.py|third_party"
repos:
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
files: "^theseus|^examples|^tests|^torchlie|^torchkin"
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
files: "^theseus|^torchlie|^torchkin"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
additional_dependencies: [torch, tokenize-rt==3.2.0, types-PyYAML, types-mock]
args: [--no-strict-optional, --ignore-missing-imports, --implicit-reexport, --explicit-package-bases]
files: "^theseus|^torchlie|^torchkin"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
files: "^theseus|^examples|^torchlie|^torchkin"