-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
setup.cfg
34 lines (29 loc) · 915 Bytes
/
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
[bdist_wheel]
universal=1
[aliases]
test=pytest
[tool:pytest]
testpaths = tests/
[yapf]
based_on_style = pep8
blank_line_before_nested_class_or_def = true
split_before_expression_after_opening_paren = true
split_penalty_import_names=0
SPLIT_PENALTY_AFTER_OPENING_BRACKET=888
[isort]
line_length = 79
multi_line_output = 0
extra_standard_library = setuptools
known_first_party = mmagic
known_third_party = PIL,cv2,lmdb,mmcv,numpy,onnx,onnxruntime,packaging,pymatting,pytest,pytorch_sphinx_theme,requests,scipy,titlecase,torch,torchvision,ts
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY
[flake8]
# The E251 check is conflict with yapf in some situation.
# See https://github.com/google/yapf/issues/393
extend-ignore = E251
# The F401 check is wrong if the `__all__` variable is modified
# in `__init__.py`
per-file-ignores =
*/__init__.py: F401
mmagic/configs/*: F401,F403,F405,E501