-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
79 lines (69 loc) · 1.7 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
[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
[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_smart_logger/schemas.py:WPS115,WPS600
pybotx_smart_logger/middlewares.py:WPS234,WPS320
pybotx_smart_logger/__init__.py:WPS300,WPS410,F401
pybotx_smart_logger/output.py:WPS110,WPS221,WPS223,WPS231
pybotx_smart_logger/undefined.py:WPS421
tests/*:D100,WPS110,WPS116,WPS118,WPS201,WPS204,WPS226,WPS235,WPS430,WPS442,S106
ignore =
# Docstrings
D,
# F-strings are ok
WPS305,
# Classes without base class are ok
WPS306,
# Implicit string concatenation are ok
WPS326,
# Asserts are ok
S101,
# Unindexed string templates are ok
P103,
# Many imports are ok
WPS201,
WPS202,
# Many local variables are ok
WPS210,
# Nested functions are ok
WPS430,
[tool:pytest]
testpaths = tests
asyncio_mode = auto
addopts =
--strict-markers
--tb=short
--cov=pybotx_smart_logger
--cov-report=term-missing
--cov-branch
--no-cov-on-fail
--cov-fail-under=100