-
Notifications
You must be signed in to change notification settings - Fork 63
/
.pre-commit-config.yaml
48 lines (47 loc) · 1.33 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
# Copyright (c) 2023 Boston Dynamics AI Institute, Inc. All rights reserved.
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.263'
hooks:
- id: ruff
args: ['--fix', '--config', 'pyproject.toml'] # we want this to refer to `bdai/pyproject.toml`
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3.10
args: ['--config', 'pyproject.toml'] # we want this to refer to `bdai/pyproject.toml`
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
pass_filenames: false
additional_dependencies:
- protobuf
- types-protobuf
- types-requests
- types-simplejson
- types-ujson
- types-PyYAML
- types-toml
- types-six
- repo: https://github.com/ssciwr/clang-format-hook.git
rev: v12.0.1 # Use the sha / tag you want to point at
hooks:
- id: clang-format
types_or: [c++, c, cuda]
- repo: https://github.com/cpplint/cpplint.git
rev: 1.6.1
hooks:
- id: cpplint
args: ['--quiet']
exclude_types: [cuda]