forked from utra-robosoccer/soccerbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.76 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-symlinks
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
- id: end-of-file-fixer
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
- id: trailing-whitespace
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
args:
- --line-length=150
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort
args:
- --profile
- black
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
args:
- --max-line-length=150
- --max-complexity=40
- --select=B,C,E,F,W,T4,B9
- --ignore=E203,E266,E501,W503,F403,F401,E402,BLK100,F405,E722,E712,E741,F841,E731
additional_dependencies:
- flake8-black>=0.3.2
language_version: python3
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
exclude: ^(external|cmake-build-debug|.pytest_cache|soccer_embedded|docs)/
additional_dependencies:
- pyyaml