Skip to content

Commit 019e544

Browse files
syntronadeas31
andauthored
first settings for pylint check (#376)
* first settings for pylint check * update pylint config --------- Co-authored-by: Adeel Asghar <adeel.asghar@liu.se>
1 parent cf8ca39 commit 019e544

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pyproject.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,38 @@ Download = "https://pypi.org/project/OMPython/#files"
4040
max-line-length = 120
4141
extend-ignore = [
4242
]
43+
44+
[tool.pylint.main]
45+
# In verbose mode, extra non-checker-related info will be displayed.
46+
# verbose = true
47+
ignore = [
48+
]
49+
ignore-paths = [
50+
]
51+
ignore-patterns = [
52+
]
53+
54+
[tool.pylint.format]
55+
# Maximum number of characters on a single line.
56+
max-line-length = 120
57+
58+
[tool.pylint.reports]
59+
reports = true
60+
61+
[tool.pylint.'MESSAGES CONTROL']
62+
disable = [
63+
'C0302', # Too many lines in module (too-many-lines)
64+
'R0902', # Too many instance attributes (too-many-instance-attributes)
65+
'R0912', # Too many branches (too-many-branches)
66+
'R0913', # Too many arguments (too-many-arguments)
67+
'R0914', # Too many local variables (too-many-locals)
68+
'R0915', # Too many statements (too-many-statements)
69+
'R0917', # Too many positional arguments (too-many-positional-arguments)
70+
'W0613', # Unused argument (unused-argument)
71+
72+
# TODO: the items below should be checked and corrected
73+
'C0103', # Variable name doesn't conform to snake_case naming style (invalid-name)
74+
'C0116', # Missing function or method docstring (missing-function-docstring)
75+
'W0511', # TODO / fixme (fixme)
76+
'W1203', # Use lazy % formatting in logging functions (logging-fstring-interpolation)
77+
]

0 commit comments

Comments
 (0)