This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
81 lines (65 loc) · 2.2 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
[tool.black]
line-length = 120
target_version = ["py38"]
exclude = '\.ipynb'
[tool.isort]
profile = "black"
include_trailing_comma = true
combine_as_imports = true
[tool.pylint.master]
jobs = 4
good-names = ["i", "j", "k", "v", "e", "df", "f", "fp", "X", "x", "y", "Y", "db"]
extension-pkg-allow-list = [
"setproctitle",
]
[tool.pylint.format]
max-line-length=120
# pylint doesn't interface well with pandas: https://github.com/PyCQA/pylint/issues/4577
[tool.pylint.typecheck]
generated-members= "pandas.*"
# disable list taken from https://github.com/PyCQA/pylint/issues/617
[tool.pylint.messages_control]
disable = [
# For Black Compatibility
"bad-continuation",
"bad-whitespace",
# Disable too many and too few checks.
"too-many-ancestors",
"too-many-arguments",
"too-many-boolean-expressions",
"too-many-branches",
"too-many-function-args",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"too-few-public-methods",
# Let the black handle this. Note black single long string line
# splitting is experimental so it's disabled.
"line-too-long",
# Disable failure for TODO items in the codebase (code will always have TODOs).
"fixme",
# Disable docstrings checks as we don't require excessive documentation.
"missing-docstring",
# Disable arguments-differ which conflicts with the common pattern
# of not exposing all knobs to the method being overridden.
"arguments-differ",
# Because plumbum CLI is used extensively and plumbum __init__
# has some magic that Wan can't replicate, it is easier to allow
# defining self.members outside of init. A fix would be welcome.
"attribute-defined-outside-init",
# Disable assigning non-slot exception.
"assigning-non-slot"
]
[tool.pylint.similarities]
# Minimum lines number of a similarity.
min-similarity-lines = 4
# Ignore comments when computing similarities.
ignore-comments = true
# Ignore docstrings when computing similarities.
ignore-docstrings = true
# Ignore imports when computing similarities.
ignore-imports = true