-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.1 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
repos:
- repo: https://github.com/espressif/check-copyright/
rev: v1.0.3
hooks:
- id: check-copyright
args: ['--config', '.github/check-spdx.yml']
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
args: [--line-length=120]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.7
hooks:
- id: clang-format
types_or: [c++, c]
args: [-style=file, -i]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/hakancelikdev/unimport
rev: 1.2.1
hooks:
- id: unimport
args: ["--ignore-init", "--gitignore"]
files: ^forge/test/models/pytorch # Targets only pytorch models tests
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
files: ^forge/test/models/pytorch # Targets only pytorch models tests
args: ["--settings-path", ".isort.cfg", "--filter-files"]