Skip to content

Commit 7f33669

Browse files
committed
??? pyproject / pylint
1 parent fd100f3 commit 7f33669

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,41 @@ Documentation = "https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/ompy
3232
Issues = "https://github.com/OpenModelica/OMPython/issues"
3333
"Release Notes" = "https://github.com/OpenModelica/OMPython/releases"
3434
Download = "https://pypi.org/project/OMPython/#files"
35+
36+
# see: https://pylint.readthedocs.io/en/stable/user_guide/usage/run.html
37+
# create example file: 'pylint --generate-toml-config'
38+
[tool.pylint.main]
39+
# In verbose mode, extra non-checker-related info will be displayed.
40+
verbose = true
41+
ignore = [
42+
"_pyinstaller", # C0103: Module name "hook-<*>" doesn't conform to snake_case naming style (invalid-name)
43+
]
44+
ignore-paths = [
45+
# "^.*/ui/.*$", # ignores all files generated by pyuic
46+
]
47+
ignore-patterns = [
48+
]
49+
50+
[tool.pylint.format]
51+
# Maximum number of characters on a single line.
52+
max-line-length = 120
53+
54+
[tool.pylint.reports]
55+
# Tells whether to display a full report or only the messages.
56+
reports = true
57+
58+
[tool.pylint.'MESSAGES CONTROL']
59+
disable = [
60+
'C0103',
61+
'C0116',
62+
'C0301',
63+
"C0411",
64+
"R0912",
65+
'R0913', # Too many arguments (./.) (too-many-arguments)
66+
'R0914', # Too many local variables (./.) (too-many-locals)
67+
"R0915",
68+
'R0917', # Too many positional arguments (./.) (too-many-positional-arguments)
69+
'W0613',
70+
'W0511',
71+
'W1203', # Use lazy % formatting in logging functions (logging-fstring-interpolation)
72+
]

0 commit comments

Comments
 (0)