-
Notifications
You must be signed in to change notification settings - Fork 1k
/
.pre-commit-config.yaml
35 lines (31 loc) · 1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: trailing-whitespace
exclude: "Megatron-LM/"
files: ^applications/DeepSpeed-Chat/.+
- id: check-yaml
exclude: "Megatron-LM/"
files: ^applications/DeepSpeed-Chat/.+
- id: end-of-file-fixer
exclude: "Megatron-LM/"
files: ^applications/DeepSpeed-Chat/.+
- repo: https://github.com/google/yapf
rev: v0.32.0
hooks:
- id: yapf
files: ^applications/DeepSpeed-Chat/.+
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
args: ['--ignore=E,F403,F405,F541,F841,W', '--select=E9,F,W6', '--per-file-ignores=__init__.py:F401']
files: ^applications/DeepSpeed-Chat/.+
- repo: local
hooks:
- id: check-license
name: check-license
entry: ./scripts/check-license.py
language: script
files: ^applications/DeepSpeed-Chat/.+\.(py|c|cpp|cu|cc|h|hpp|cuh|hip|tr|sh)$