-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
61 lines (60 loc) · 1.82 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
# Copyright (c) 2023 Boston Dynamics AI Institute LLC. All rights reserved.
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.263'
hooks:
- id: ruff
args: ['--fix', '--config', '.config/ruff.toml']
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3.10
args: ['--config', '.config/black.toml']
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
args: ['--unsafe'] # details about the unsafe flag:
# https://github.com/pre-commit/pre-commit-hooks#check-yaml
# This is the solution proposed to prevent `check-yaml` from failing on custom tags:
# https://github.com/pre-commit/pre-commit-hooks/issues/701
- id: check-added-large-files
args: ['--enforce-all', '--maxkb', '200']
- id: check-toml
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/ssciwr/clang-format-hook.git
rev: v14.0.0
hooks:
- id: clang-format
types_or: [c++, c]
- repo: https://github.com/cpplint/cpplint.git
rev: 1.6.1
hooks:
- id: cpplint
args: ['--quiet', '--filter=-whitespace/comments', '--linelength=120']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
args: ['--config-file', '.config/mypy.ini']
pass_filenames: false
additional_dependencies:
- types-protobuf
- types-requests
- types-simplejson
- types-ujson
- types-PyYAML
- types-toml
- types-six
- typing-extensions
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary