forked from url-kaist/patchwork-plusplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (59 loc) · 1.9 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (59 loc) · 1.9 KB
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
62
63
64
65
66
ci:
autofix: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
exclude: \.clang-format$
- id: check-json
- id: check-xml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
######################################################################
# Python Formatting
######################################################################
# For Python import sorting
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
hooks:
- id: isort
# TODO(hlim): Why launch.py files lead to error?
exclude: \.launch\.py$
# Yet Another Python Formatter
# NOTE(hlim): Python 3.12 (Ubuntu 24.04) is now not supported by yapf
# - repo: https://github.com/pre-commit/mirrors-yapf
# rev: v0.32.0
# hooks:
# - id: yapf
# additional_dependencies: [toml]
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
# TODO(hlim): Why launch.py files lead to error?
exclude: \.launch\.py$
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
exclude: 'python/utils/download_datasets'
# To avoid conflict between flake and black
args: ["--ignore=E501"]
######################################################################
# Markdown Formatting
######################################################################
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.9
hooks:
- id: mdformat
exclude: 'github/'
######################################################################
# C++ Formatting
######################################################################
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v16.0.6"
hooks:
- id: clang-format