-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.lintrunner.toml
64 lines (63 loc) · 1.48 KB
/
.lintrunner.toml
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
[[linter]]
code = 'BLACK'
include_patterns = [
'**/*.py',
'**/*.pyi',
]
exclude_patterns = [
'**/__init__.py',
'third_party/**',
'codegen/**',
'third_party/googletest/**',
'third_party/kineto_mlu/tb_plugin/**',
'third_party/kineto_mlu/libkineto/third_party/**',
'third_party/kineto_mlu/libkineto/sample_programs/**',
'test/torch_native_ci/mlu_fixed_exclude_uts.py',
'test/torch_native_ci/mlu_exclude_caseid_list.py',
'tools/linter/**',
]
command = [
'python3',
'tools/linter/adapters/black_linter.py',
'--',
'@{{PATHSFILE}}'
]
init_command = [
'python3',
'tools/linter/adapters/pip_init.py',
'--dry-run={{DRYRUN}}',
'black==23.12.1',
]
is_formatter = true
[[linter]]
code = 'CLANGFORMAT'
include_patterns = [
'**/*.cpp',
'**/*.h',
'**/*.hpp',
]
exclude_patterns = [
'third_party/**',
'codegen/**',
'third_party/googletest/**',
'third_party/kineto_mlu/tb_plugin/**',
'third_party/kineto_mlu/libkineto/third_party/**',
'third_party/kineto_mlu/libkineto/sample_programs/**',
]
init_command = [
'python3',
'tools/linter/adapters/s3_init.py',
'--config-json=tools/linter/adapters/s3_init_config.json',
'--linter=clang-format',
'--dry-run={{DRYRUN}}',
'--output-dir=.lintbin',
'--output-name=clang-format',
]
command = [
'python3',
'tools/linter/adapters/clangformat_linter.py',
'--binary=.lintbin/clang-format',
'--',
'@{{PATHSFILE}}'
]
is_formatter = true