forked from flagos-ai/FlagGems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (29 loc) · 840 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
32 lines (29 loc) · 840 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: flake8
args: ["--ignore=F405,E731,W503,E203", --max-line-length=120]
# F405 : Name may be undefined, or defined from star imports: module
# E731 : Do not assign a lambda expression, use a def
# W503 : Line break before binary operator
# E203 : Whitespace before ':'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.0
hooks:
- id: clang-format
files: \.(cpp|h|cc|c|hpp)$
exclude: ^third_party/
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black.git
rev: 23.7.0
hooks:
- id: black
- id: black-jupyter