-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathsetup.cfg
106 lines (95 loc) · 1.77 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[flake8]
max-line-length = 88
# Errors to ignore - TODO: Double check
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 =
# local private runs
_examples
# TEMP - ignore all tests
test_*
## General Excludes (TEMP, double check)
# .py files
__init__.py
run_all_unit_tests.py
setup.py
# others
.cache
.dvc
.git
.github
.idea
.mypy_cache
.pytest_cache
.venv
.vscode
__pycache__
algos
build
dist
ext_deps
libs
releases
[mypy]
python_version = 3.9
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
exclude = (?x)(
^(
##### local examples runs
_examples/
)
)
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
[isort]
profile = black