forked from free-open-network/rasa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
51 lines (46 loc) · 2.04 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
# pytest pycodestyle configuration
[tool:pytest]
# Function starting with the following pattern are considered for test cases.
python_functions=test_
# pytest pycodestyle configuration
codestyle_max_line_length = 88
codestyle_ignore = E302 W503 E203 E501 E265 E402 E251 E211
codestyle_exclude =
rasa/core/policies/tf_utils.py
rasa/core/policies/__init__.py
filterwarnings =
ignore::ResourceWarning:ruamel[.*]
#error
log_cli = true
log_cli_level = WARNING
[flake8]
max-line-length = 88
max-doc-length = 88
# See these resources for descriptions of the error codes:
# E***, F***, W*** : https://flake8.pycqa.org/en/latest/user/error-codes.html
# D***: http://www.pydocstyle.org/en/stable/error_codes.html
ignore = W503, # line break before binary operator (https://black.readthedocs.io/en/stable/compatible_configs.html#flake8)
E203, # whitespace before ‘:’ (https://black.readthedocs.io/en/stable/compatible_configs.html#flake8)
E231, # missing whitespace after ‘,’, ‘;’, or ‘:’ (black formats this differently as well)
E501, # too long lines - FIX THIS IN SEPARATE PR
D100, # ignore missing docstrings in public module
D104, # ignore missing docstrings in public package
D105, # ignore missing docstrings in magic methods
docstring-convention = google
[mypy]
# some libraries do not have type hints; ideally we remove
# this at some point but it will require a lot of efforts from us and library owners
mypy_path = ./stubs
ignore_missing_imports = True
show_error_codes = True
warn_redundant_casts = True
warn_unused_ignores = True
disallow_untyped_calls = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
disallow_untyped_decorators = True
# FIXME: working our way towards removing these
# see https://github.com/RasaHQ/rasa/pull/6470
# the list below is sorted by the number of errors for each error code, in decreasing order
disable_error_code = arg-type, assignment, var-annotated, return-value, union-attr,
override, operator, attr-defined, index, misc, return, has-type, func-returns-value