-
Notifications
You must be signed in to change notification settings - Fork 135
/
.pre-commit-config-check.yaml
74 lines (74 loc) · 2.23 KB
/
.pre-commit-config-check.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
62
63
64
65
66
67
68
69
70
71
72
73
74
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3
args:
- --line-length=119
- --check
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.271'
hooks:
- id: ruff
args:
- --no-fix
- repo: local
hooks:
- id: pylint-nanotron
name: pylint nanotron core
entry: pylint --init-hook='import sys; sys.path.append(".")'
exclude: ^examples/.*$ # ignore examples as for each example we need to go in and look
language: system
types: [ python ]
args:
- --errors-only
- id: pylint-example-dataloading
name: pylint example dataloading
entry: pylint --init-hook='import sys; sys.path.append(".")'
files: ^examples/dataloading/.*$
language: system
types: [ python ]
args:
- --errors-only
- id: pylint-example-gpt2-mqa
name: pylint example gpt2_mqa
entry: pylint --init-hook='import sys; sys.path.append(".")'
files: ^examples/gpt2_mqa/.*$
language: system
types: [ python ]
args:
- --errors-only
- id: pylint-example-gpt2
name: pylint example gpt2
entry: pylint --init-hook='import sys; sys.path.append(".")'
files: ^examples/gpt2/.*$
language: system
types: [ python ]
args:
- --errors-only
- id: pylint-example-llama
name: pylint example llama
entry: pylint --init-hook='import sys; sys.path.append(".")'
files: ^examples/llama/.*$
language: system
types: [ python ]
args:
- --errors-only
- id: pylint-example-p2p
name: pylint example p2p
entry: pylint --init-hook='import sys; sys.path.append(".")'
files: ^examples/p2p/.*$
language: system
types: [ python ]
args:
- --errors-only
- id: pylint-example-t5
name: pylint example t5
entry: pylint --init-hook='import sys; sys.path.append(".")'
files: ^examples/t5/.*$
language: system
types: [ python ]
args:
- --errors-only