-
Notifications
You must be signed in to change notification settings - Fork 63
/
setup.cfg
40 lines (36 loc) · 1.13 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
[isort]
line_length=100
multi_line_output=3
skip=tools/test_net.py, tools/train_net.py
known_standard_library=numpy,setuptools,mock
known_myself=polymorph
known_third_party=matplotlib,cv2,torch,torchvision,PIL,pycocotools,yacs,termcolor,cityscapesscripts,tabulate,tqdm,scipy,lvis,psutil,pkg_resources,caffe2,onnx
no_lines_before=STDLIB,THIRDPARTY
sections=FUTURE,STDLIB,THIRDPARTY,myself,FIRSTPARTY,LOCALFOLDER
default_section=FIRSTPARTY
[flake8]
ignore = W503, E203, E221, E402, E741, C901, W504, E731, C408, F541, E722
max-line-length = 100
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude = build,__init__.py
[pep8]
ignore = W503, E203, E221, E402, E741, C901, W504, E731, F541, E722
max-line-length = 100
[yapf]
based_on_style = pep8
spaces_before_comment = 4
split_before_logical_operator = true
[mypy]
python_version=3.6
ignore_missing_imports = True
warn_unused_configs = True
disallow_untyped_defs = True
check_untyped_defs = True
warn_unused_ignores = True
warn_redundant_casts = True
show_column_numbers = True
follow_imports = silent
allow_redefinition = True
; Require all functions to be annotated
disallow_incomplete_defs = True