-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
98 lines (86 loc) · 2.31 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
[mypy]
# Mypy configuration:
# https://mypy.readthedocs.io/en/latest/config_file.html
plugins = pydantic.mypy
disallow_untyped_defs = True
# strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
show_error_codes = True
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-tests.*]
ignore_errors = True
[isort]
# isort configuration:
# https://github.com/timothycrosley/isort/wiki/isort-Settings
include_trailing_comma = true
multi_line_output = 3
line_length = 88
force_grid_wrap = 0
combine_as_imports = True
[flake8]
format = wemake
show-source = True
statistics = False
max-line-length = 88
inline-quotes = double
i-control-code = False
allowed-domain-names =
# handler is something similar to "views" from common framework, but for bot:
handler,
# rpc params
params,
per-file-ignores =
pybotx_smartapp_rpc/__init__.py: WPS410
# TODO: Think about fixing this name or deleting this comment
pybotx_smartapp_rpc/exceptions.py: N818
pybotx_smartapp_rpc/router.py: WPS609
pybotx_smartapp_rpc/models/responses.py: WPS110, WPS226
pybotx_smartapp_rpc/openapi_utils.py: WPS226, WPS337,W503,WPS234,WPS348,WPS221,WPS237,WPS529,C812
pybotx_smartapp_rpc/router.py: WPS226, WPS234, WPS211
pybotx_smartapp_rpc/smartapp.py: WPS211
tests/*:DAR101,E501,WPS110,WPS114,WPS116,WPS118,WPS202,WPS211,WPS221,WPS226,WPS237,WPS402,WPS420,WPS421,WPS428,WPS430,WPS431,WPS432,WPS441,WPS442,WPS520,PT011,S101,S105,S106,C812,WPS111
ignore =
# Class without base class
WPS306,
# Upper-case constant in class
WPS115,
# Too many imported names from module
WPS235,
# f-strings are good
WPS305,
# Module docstrings are useless
D100,
# __init__ docstrings
D107,
# Arguments and Returns in docstrings
DAR101, DAR201, DAR401
# Docstring in public package
D104,
# Too many methods
WPS214,
# Too many imports
WPS201,
# Overused expression
WPS204,
# Too many local vars
WPS210,
# Implicit string concatenation
WPS326,
# Nested class
WPS431,
# Docstrings
D101, D102, D103, D106
[tool:pytest]
testpaths = tests
asyncio_mode = auto
addopts =
--strict-markers
--tb=short
--cov=pybotx_smartapp_rpc
--cov-report=term-missing
--no-cov-on-fail
--cov-fail-under=100
markers =
wip: "Work in progress"