-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
122 lines (114 loc) · 2.67 KB
/
pyproject.toml
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
[tool.isort]
line_length = 80
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
known_first_party = ["bncbot", "tests"]
float_to_top = true
[tool.black]
line-length = 80
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| venv
)/
)
'''
[tool.pylint.main]
analyse-fallback-blocks = true
py-version = "3.8"
[tool.pylint.messages_control]
disable = [
"raw-checker-failed",
"no-else-return",
"nested-min-max",
"bad-mcs-classmethod-argument",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"invalid-name",
"duplicate-string-formatting-argument",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"consider-using-f-string",
"consider-using-dict-items",
"consider-using-with",
"consider-using-min-builtin",
"arguments-renamed",
"use-maxsplit-arg",
"consider-iterating-dictionary",
"redefined-outer-name",
"unused-argument",
"broad-except",
"ungrouped-imports",
"wrong-import-position",
"arguments-differ",
"too-many-arguments",
"too-many-locals",
"too-many-statements",
"too-many-branches",
"protected-access",
"duplicate-code",
"no-else-raise",
"arguments-out-of-order",
"redefined-builtin",
"no-else-continue",
"unnecessary-comprehension",
"no-value-for-parameter",
"too-few-public-methods",
"fixme",
"too-many-public-methods",
"missing-timeout",
"not-callable",
"unnecessary-lambda-assignment",
"abstract-method",
"consider-using-generator",
"too-many-return-statements",
"line-too-long",
"too-many-instance-attributes",
"broad-exception-raised",
"use-implicit-booleaness-not-comparison",
]
enable = ["c-extension-no-member"]
[tool.pylint.typecheck]
generated-members = "(requests\\.)?codes\\.[a-zA-Z0-9_]+"
[tool.mypy]
namespace_packages = true
python_version = "3.8"
warn_unused_configs = true
strict = true
ignore_missing_imports = true
check_untyped_defs = true
show_error_codes = true
warn_unused_ignores = true
warn_redundant_casts = true
# strict_equality = true
follow_imports = "silent"
disallow_any_generics = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "scm"
update_changelog_on_bump = true
major_version_zero = true