-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
executable file
·68 lines (63 loc) · 1.36 KB
/
setup.cfg
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
# flake doesn't support 'pyproject.toml': https://github.com/PyCQA/flake8/issues/234
[flake8]
max-line-length = 120
ignore =
# Line too long
E501,
# whitespace before ','
E203,
# block comment should start with ‘# ‘
E265,
# too many leading ‘#’ for block comment
E266,
# do not use bare 'except' <- Consider fix and delete ignore
E722
# do not use variables named ‘l’, ‘O’, or ‘I’
E741,
# do not assign a lambda expression, use a def
E731
# line break before binary operator
W503,
# invalid escape sequence '\s'
W605
# '<X>' may be undefined, or defined from star imports: <Y>
F405
# Files to exclude:
exclude =
## all __init__.py files
__init__.py
[mypy]
python_version = 3.7
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
ignore_missing_imports = True
show_column_numbers = True
check_untyped_defs = True
follow_imports = skip
disable_error_code =
assignment,
operator,
no-any-return,
index,
call-arg,
import,
misc,
no-untyped-def,
var-annotated,
arg-type,
return,
list-item,
union-attr,
has-type,
call-overload,
dict-item,
attr-defined,
override,
return-value,
func-returns-value,
name-defined,
valid-type,
type-var
enable_error_code =
no-untyped-def