-
Notifications
You must be signed in to change notification settings - Fork 227
/
.lintrunner.toml
43 lines (41 loc) · 956 Bytes
/
.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
merge_base_with = "origin/main"
[[linter]]
code = 'RUFF'
include_patterns = ['test/smoke_test/*.py', 'aarch64_linux/*.py', 'test/check_binary_symbols.py']
command = [
'python3',
'tools/linter/adapters/ruff_linter.py',
'--config=pyproject.toml',
'--show-disable',
'--',
'@{{PATHSFILE}}'
]
init_command = [
'python3',
'tools/linter/adapters/pip_init.py',
'--dry-run={{DRYRUN}}',
'ruff==0.1.1',
]
is_formatter = true
[[linter]]
code = 'TABS'
include_patterns = ['**/*.sh']
exclude_patterns = [
'**/*Makefile',
'common/install_rocm_drm.sh',
'.lintrunner.toml',
]
command = [
'python3',
'tools/linter/adapters/grep_linter.py',
# @lint-ignore TXT2
'--pattern= ',
'--linter-name=TABS',
'--error-name=saw some tabs',
'--replace-pattern=s/\t/ /',
"""--error-description=\
This line has tabs; please replace them with spaces.\
""",
'--',
'@{{PATHSFILE}}'
]