-
Notifications
You must be signed in to change notification settings - Fork 427
/
pyproject.toml
75 lines (59 loc) · 2.12 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
[tool.pylint.main]
jobs = 0 # Use one process for CPU.
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.docparams",
"pylint.extensions.mccabe",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.redefined_variable_type",
]
# Fail if there are *any* messages from PyLint.
# The letters refer to PyLint's message categories, see
# https://pylint.pycqa.org/en/latest/messages/messages_introduction.html
fail-on = ["C", "E", "F", "I", "R", "W"]
[tool.pylint.messages_control]
ignore-paths=[
]
enable = [
"bad-inline-option",
"deprecated-pragma",
"useless-suppression",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-zero",
"use-implicit-booleaness-not-comparison-to-string",
]
disable = [
# Docstrings are encouraged but we don't want to enforce that everything
# must have a docstring.
"missing-docstring",
# We don't always want to have to put a `:return:` in a docstring.
"missing-return-doc",
# We don't always want to have to put an `:rtype:` in a docstring.
"missing-return-type-doc",
# We don't want to have to document the type of every parameter with a
# `:type:` in the docstring.
"missing-type-doc",
# We use isort to sort and group our imports, so we don't need PyLint to
# check them for us.
"ungrouped-imports",
# We use Black to format our code automatically, so we don't need PyLint to
# check formatting for us.
"line-too-long",
# We use isort to sort out imports so we don't need PyLint to check import
# ordering for us.
"wrong-import-order",
"too-few-public-methods",
# Issues to disable this for false positives, disabling it globally in the meantime https://github.com/PyCQA/pylint/issues/214
"duplicate-code",
"missing-param-doc",
# Temporarily ignored during pep8 -> pylint transition. This should be removed later.
"fixme",
]
good-names = [
"i", "j", "k", "ex", "Run", "_", # PyLint's default good names.
"tm", "db", "ai",
]
[tool.pylint.reports]
output-format = "colorized"
score = "no"