forked from pytorch/functorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lintrunner.toml
48 lines (47 loc) · 901 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
44
45
46
47
48
[[linter]]
code = 'FLAKE8'
include_patterns = ['**/*.py']
exclude_patterns = [
'.git/**',
'benchmarks/**',
'docs/**',
'examples/**',
'notebooks/**',
]
command = [
'python3',
'tools/lint/flake8_linter.py',
'--',
'@{{PATHSFILE}}'
]
init_command = [
'python3',
'tools/lint/pip_init.py',
'--dry-run={{DRYRUN}}',
'flake8==3.8.2',
'flake8-bugbear==20.1.4',
'flake8-comprehensions==3.3.0',
'flake8-executable==2.0.4',
'flake8-pyi==20.5.0',
'mccabe==0.6.1',
'pycodestyle==2.6.0',
'pyflakes==2.2.0',
]
# [[linter]]
# code = 'BLACK'
# include_patterns = [
# '**/*.py',
# ]
# command = [
# 'python3',
# 'tools/lint/black_linter.py',
# '--',
# '@{{PATHSFILE}}'
# ]
# init_command = [
# 'python3',
# 'tools/lint/pip_init.py',
# '--dry-run={{DRYRUN}}',
# 'black==22.3.0',
# ]
# is_formatter = true