forked from Lightning-Universe/lightning-bolts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
151 lines (118 loc) · 3.06 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[tool:pytest]
norecursedirs =
.git
dist
build
addopts =
--strict
--doctest-modules
--durations=0
--color=yes
[coverage:run]
parallel = True
#concurrency = thread, multiprocessing
concurrency = thread
[coverage:report]
exclude_lines =
pragma: no-cover
pass
if __name__ == .__main__.:
# TODO, remove this ignores in future
omit =
pl_bolts/datamodules/*_datamodule.py
pl_bolts/datamodules/*_dataset.py
[flake8]
max-line-length = 120
exclude = .tox,*.egg,build,temp
select = E,W,F
doctests = True
verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint
# see: https://www.flake8rules.com/
ignore =
E231 # Ignore "Missing whitespace after ',', ';', or ':'"
E731 # Ignore "Do not assign a lambda expression, use a def"
W503 # Ignore "Line break occurred before a binary operator"
W504 # Ignore "Line break occurred after a binary operator"
W605 # Ignore "Invalid escape sequence 'x'"
[yapf]
based_on_style = pep8
spaces_before_comment = 2
split_before_logical_operator = true
split_before_arithmetic_operator = true
COLUMN_LIMIT = 120
COALESCE_BRACKETS = true
DEDENT_CLOSING_BRACKETS = true
ALLOW_SPLIT_BEFORE_DICT_VALUE = false
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
NO_SPACES_AROUND_SELECTED_BINARY_OPERATORS = false
[check-manifest]
ignore =
*.yml
.github
.github/*
.circleci
[metadata]
license_file = LICENSE
description-file = README.md
# long_description = file:README.md
# long_description_content_type = text/markdown
[isort]
known_first_party =
pl_bolts
tests
notebooks
line_length = 120
order_by_type = False
# 3 - Vertical Hanging Indent
multi_line_output = 3
include_trailing_comma = True
[mypy]
# Typing tests is low priority, but enabling type checking on the
# untyped test functions (using `--check-untyped-defs`) is still
# high-value because it helps test the typing.
files = pl_bolts, tests
pretty = True
disallow_untyped_defs = True
ignore_missing_imports = True
show_error_codes = True
warn_redundant_casts = True
warn_unused_configs = True
[mypy-pl_bolts.datasets.*]
ignore_errors = True
[mypy-pl_bolts.datamodules]
# pl_bolts/datamodules/__init__.py
ignore_errors = True
[mypy-pl_bolts.datamodules.experience_source]
ignore_errors = True
[mypy-pl_bolts.datamodules.sklearn_datamodule]
ignore_errors = True
[mypy-pl_bolts.datamodules.vocdetection_datamodule]
ignore_errors = True
[mypy-pl_bolts.losses.*]
ignore_errors = True
[mypy-pl_bolts.metrics.*]
ignore_errors = True
[mypy-pl_bolts.models.*]
ignore_errors = True
[mypy-pl_bolts.models.autoencoders.*]
ignore_errors = True
[mypy-pl_bolts.models.detection.*]
ignore_errors = True
[mypy-pl_bolts.models.gans.*]
ignore_errors = True
[mypy-pl_bolts.models.regression.*]
ignore_errors = True
[mypy-pl_bolts.models.rl.*]
ignore_errors = True
[mypy-pl_bolts.models.self_supervised.*]
ignore_errors = True
[mypy-pl_bolts.models.vision.*]
ignore_errors = True
[mypy-pl_bolts.optimizers.*]
ignore_errors = True
[mypy-pl_bolts.transforms.*]
ignore_errors = True
[mypy-tests.*]
ignore_errors = True