-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
131 lines (111 loc) · 2.79 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
123
124
125
126
127
128
129
130
131
[tool.poetry]
name = "karmagrambot"
version = "0.1.0"
description = "Telegram bot that logs messages (not the contents, for the sake of privacy) and votes."
authors = ["Cauê Baasch de Souza <[email protected]>"]
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = "^3.7"
python-telegram-bot = "^11.1"
dataset = "^1.1"
mypy = "^0.740.0"
[tool.poetry.dev-dependencies]
flake8 = "^3.7"
jedi = "^0.13.2"
pylint = "^2.6"
pylint_quotes = "^0.2.1"
isort = "^5.6.4"
invoke = "^1.2"
black = "^19.3b0"
[tool.poetry.scripts]
karmagrambot = "karmagrambot:run"
[tool.black]
skip_string_normalization = true
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.isort]
profile = "hug"
line_length = 100
[tool.pylint]
[tool.pylint.MASTER]
ignore = "CVS"
persistent = "yes"
load-plugins = "pylint_quotes"
string-quote = "single"
triple-quote = "double"
docstring-quote = "double"
[tool.pylint.'MESSAGES CONTROL']
disable = [
"locally-disabled",
"too-many-return-statements",
]
[tool.pylint.REFACTORING]
max-nested-blocks = 5
[tool.pylint.MISCELLANEOUS]
notes = [
'FIXME',
'XXX',
'TODO',
]
[tool.pylint.TYPECHECK]
contextmanager-decorators = [
'contextlib',
'contextmanager',
]
ignore-mixin-members = 'yes'
ignore-on-opaque-inference = 'yes'
ignored-classes = [
'optparse.Values',
'thread._local',
'_thread._local',
]
missing-member-hint = 'yes'
missing-member-hint-distance = 1
missing-member-max-choices = 1
[tool.pylint.REPORTS]
output-format = "text"
files-output = "no"
reports = "yes"
[tool.pylint.'LOGGING']
logging-modules = 'logging'
[tool.pylint.VARIABLES]
allow-global-unused-variables = 'yes'
callbacks = [
'cb_',
'_cb',
]
dummy-variables-rgx = '_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_'
ignored-argument-names ='_.*|^ignored_|^unused_'
init-import = 'no'
redefining-builtins-modules = [
"six.moves",
"future.builtins",
]
[tool.pylint.SIMILARITIES]
ignore-comments = 'yes'
ignore-docstrings = 'yes'
ignore-imports = 'no'
min-similarity-lines = 4
[tool.pylint.SPELLING]
spelling-store-unknown-words = 'no'
[tool.pylint.IMPORTS]
deprecated-modules = "optparse"
[tool.pylint.CLASSES]
defining-attr-methods = [
"__init__",
"__new__",
"setUp",
]
valid-classmethod-first-arg = "cls"
valid-metaclass-classmethod-first-arg = "mcs"
exclude-protected = [
"_asdict",
"_fields",
"_replace",
"_source",
"_make",
]
[tool.pylint.EXCEPTIONS]
overgeneral-exceptions = "Exception"