This repository has been archived by the owner on May 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
114 lines (105 loc) · 2.82 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
[mypy]
disallow_untyped_defs = True
strict_optional = True
follow_imports = skip
[mypy-mako.*]
ignore_missing_imports = True
[mypy-botx_metrics.*]
ignore_missing_imports = True
[mypy-loguru.*]
ignore_missing_imports = True
[isort]
multi_line_output = 3
include_trailing_comma = True
line_length = 88
force_grid_wrap = 0
combine_as_imports = True
[flake8]
# See https://flake8.pycqa.org/en/latest/user/configuration.html#project-configuration
max-line-length = 88
max-awaits = 10
max-local-variables = 10
max-module-members = 10
max-arguments = 10
max-imports = 15
per-file-ignores =
# docstings for module
*/__init__.py:D104
no-accept-encodings = True
inline-quotes = "
# See https://wemake-python-stylegui.de/en/latest/pages/usage/violations/index.html
ignore =
# black handles whitespace before ':'.
E203,
# also handled by black.
C8,
# mako templates are used as messages, so no xss attacks.
S702,
# function calls in arguments definition is part of fastapi and botx di system.
B008,
# docstrings for public nested classes like Meta or Config not necessary
D106,
# empty lines after docstrings. handle by black
D202, D207
# return in docstrings is not required part
DAR201,
# f-strings are useful
WPS305,
# required base in class definition is strange
WPS306,
# objects that are returned from fastapi and botx as di system parts should be available
WPS404,
# does not play well with forward type references
WPS226,
# Forbids to use implicit string concatenation
WPS326,
# Docstrings for public method
D103,
# Docstrings for public class
D101,
# Ignore asserts
S101,
# Allow more cognitive complexity
WPS232, WPS231,
# Allow more local variables
WPS210,
# Allow string does contain unindexed parameters
P103,
# just to make linter work
# Missing docstring in public module
D100,
# Missing docstring in public method
D102,
# 1 blank line required between summary line and description
D205,
# First line should end with a period
D400,
# first argument of a method should be named 'self'
N805,
# line break before binary operator
W503,
# Found wrong variable name
WPS110,
# Found upper-case constant
WPS115,
# Found too many arguments
WPS211,
# Found too many methods
WPS214,
# Found too many public instance attributes
WPS230,
# Found multiline conditions
WPS337,
# Found nested class
WPS431,
# Found useless returning `else` statement
WPS503,
# Found `in` used with a non-set container
WPS510,
# Found unpythonic getter or setter
WPS615,
# Found too many raises in a function
WPS238,
[darglint]
# See https://github.com/terrencepreilly/darglint#strictness-configuration
strictness = long