forked from feldlime/RecoServiceTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
207 lines (146 loc) · 6.61 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[tool:pytest]
# Sets the console output style while running tests.
console_output_style = progress
# Sets list of directories that should be searched for tests when no
# specific directories, files or test ids are given in the command
# line when executing pytest from the root dir directory.
testpaths = tests
junit_family = xunit2
[flake8]
# Set the maximum allowed McCabe complexity value for a block of code.
max-complexity = 10
# Set the maximum length that any line may be.
max-line-length = 79
# Set the maximum length that a comment or docstring line may be.
max-doc-length = 79
[mypy]
# Enables PEP 420 style namespace packages.
namespace_packages = False
# Suppresses error messages about imports that cannot be resolved.
ignore_missing_imports = True
# Directs what to do with imports when the imported module is found as a .py file
# and not part of the files, modules and packages provided on the command line.
follow_imports = normal
# Determines whether to respect the follow_imports setting even for stub (.pyi) files.
follow_imports_for_stubs = True
# Specifies the path to the Python executable to inspect
# to collect a list of available PEP 561 packages.
python_executable = .venv/bin/python
# Enables reporting error messages generated within PEP 561 compliant packages.
no_silence_site_packages = False
# Specifies the Python version used to parse and check the target program.
python_version = 3.8
# Disallows usage of types that come from unfollowed imports.
disallow_any_unimported = False
# Disallows all expressions in the module that have type Any.
disallow_any_expr = False
# Disallows functions that have Any in their signature after decorator transformation.
disallow_any_decorated = False
# Disallows explicit Any in type positions such as type annotations and generic type parameters.
disallow_any_explicit = False
# Disallows usage of generic types that do not specify explicit type parameters.
disallow_any_generics = False
# Disallows subclassing a value of type Any.
disallow_subclassing_any = False
# Disallows calling functions without type annotations from functions with type annotations.
disallow_untyped_calls = True
# Disallows defining functions without type annotations or with incomplete type annotations.
disallow_untyped_defs = False
# Disallows defining functions with incomplete type annotations.
disallow_incomplete_defs = False
# Type-checks the interior of functions without type annotations.
check_untyped_defs = True
# Reports an error whenever a function with type annotations
# is decorated with a decorator without annotations.
disallow_untyped_decorators = False
# Changes the treatment of arguments with a default value of None
# by not implicitly making their type Optional.
no_implicit_optional = False
# Enables or disables strict Optional checks.
# If False, mypy treats None as compatible with every type.
strict_optional = False
# Warns about casting an expression to its inferred type.
warn_redundant_casts = False
# Warns about unneeded # type: ignore comments.
warn_unused_ignores = True
# Shows errors for missing return statements on some execution paths.
warn_no_return = True
# Shows a warning when returning a value with type Any
# from a function declared with a non- Any return type.
warn_return_any = False
# Shows a warning when encountering any code inferred to be
# unreachable or redundant after performing type analysis.
warn_unreachable = True
# Shows errors related to strict None checking, if the global strict_optional flag is enabled.
show_none_errors = True
# Ignores all non-fatal errors.
ignore_errors = False
# Causes mypy to suppress errors caused by not being able to
# fully infer the types of global and class variables.
allow_untyped_globals = True
# Allows variables to be redefined with an arbitrary type, as long as the redefinition
# is in the same block and nesting level as the original definition.
allow_redefinition = False
# By default, imported values to a module are treated as exported
# and mypy allows other modules to import them.
implicit_reexport = True
# Prohibit equality checks, identity checks, and container checks between non-overlapping types.
strict_equality = True
# Prefixes each error with the relevant context.
show_error_context = True
# Shows column numbers in error messages.
show_column_numbers = True
# Shows error codes in error messages. See Error codes for more information.
show_error_codes = True
# Use visually nicer output in error messages: use soft word wrap,
# show source code snippets, and show error location markers.
pretty = True
# Shows error messages with color enabled.
color_output = True
# Shows a short summary line after error messages.
error_summary = True
# Show absolute paths to files.
show_absolute_path = False
# Enables incremental mode.
incremental = True
# Specifies the location where mypy stores incremental cache info.
cache_dir = .mypy_cache
# Use an SQLite database to store the cache.
sqlite_cache = False
# Include fine-grained dependency information in the cache for the mypy daemon.
cache_fine_grained = False
# Makes mypy use incremental cache data even if it was generated by a different version of mypy.
skip_version_check = False
# Skip cache internal consistency checks based on mtime.
skip_cache_mtime_checks = False
[isort]
# An integer that represents the longest line-length you want a single import to take.
line_length = 79
# An integer that represents the longest line-length you want when wrapping.
wrap_length = 79
# Virtual environment to use for determining whether a package is third-party.
virtual_env = .venv
# An integer that represents how you want imports to be displayed
# if they're long enough to span multiple lines.
multi_line_output = 3
# An integer that represents the number of spaces you would like
# to indent by or Tab to indent by a single tab
indent = 4
# Force from imports to be grid wrapped regardless of line length,
# where the value given is the number of imports allowed before wrapping occurs.
force_grid_wrap = false
# If set to True - isort will only change a file in place
# if the resulting file has correct Python syntax.
atomic = True
# If set to True - ensures that if a star import is present,
# nothing else is imported from that namespace.
combine_star = True
# If set to True - isort will print out verbose information.
verbose = false
# Will set isort to automatically add a trailing comma to the end of from imports.
include_trailing_comma = True
# Tells isort to use parenthesis for line continuation
# instead of \ for lines over the allotted line length limit.
use_parentheses = True
# If set, import sorting will take case in consideration when sorting.
case_sensitive = True