forked from facebookresearch/habitat-sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (44 loc) · 1.19 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
exclude: 'build|src/deps|src/obsolete'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=2000']
- id: end-of-file-fixer
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.2
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.20
hooks:
- id: isort
language_version: python3.6
exclude: docs/
additional_dependencies: [toml]
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
language_version: python3.6
- repo: local
hooks:
- id: clang-format
name: Run clang-format
entry: clang-format -i -style=file
types: [text]
files: '.*\.cpp|.*\.h'
language: system
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v6.4.0
hooks:
- id: eslint
args: [--fix, --ext .html,.js]
additional_dependencies: