From 44a43e5d0d91d448bee5e35352ed8b19c31925b9 Mon Sep 17 00:00:00 2001 From: syntron Date: Fri, 31 Oct 2025 14:34:28 +0100 Subject: [PATCH 1/2] first settings for pylint check --- pyproject.toml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 70708682..ff39d458 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,3 +40,35 @@ Download = "https://pypi.org/project/OMPython/#files" max-line-length = 120 extend-ignore = [ ] + +[tool.pylint.main] +# In verbose mode, extra non-checker-related info will be displayed. +# verbose = true +ignore = [ +] +ignore-paths = [ +] +ignore-patterns = [ +] + +[tool.pylint.format] +# Maximum number of characters on a single line. +max-line-length = 120 + +[tool.pylint.reports] +reports = true + +[tool.pylint.'MESSAGES CONTROL'] +disable = [ + # 'C0103', # Variable name doesn't conform to snake_case naming style (invalid-name) + # 'C0116', # Missing function or method docstring (missing-function-docstring) + 'C0302', # Too many lines in module (too-many-lines) + 'R0902', # Too many instance attributes (too-many-instance-attributes) + 'R0912', # Too many branches (too-many-branches) + 'R0913', # Too many arguments (too-many-arguments) + 'R0914', # Too many local variables (too-many-locals) + 'R0915', # Too many statements (too-many-statements) + 'R0917', # Too many positional arguments (too-many-positional-arguments) + 'W0613', # Unused argument (unused-argument) + # 'W1203', # Use lazy % formatting in logging functions (logging-fstring-interpolation) +] From 38569791e30ddd469bb584d6d352f9ff693e16d7 Mon Sep 17 00:00:00 2001 From: syntron Date: Sun, 16 Nov 2025 15:22:28 +0100 Subject: [PATCH 2/2] update pylint config --- pyproject.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ff39d458..e9636ab5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,8 +60,6 @@ reports = true [tool.pylint.'MESSAGES CONTROL'] disable = [ - # 'C0103', # Variable name doesn't conform to snake_case naming style (invalid-name) - # 'C0116', # Missing function or method docstring (missing-function-docstring) 'C0302', # Too many lines in module (too-many-lines) 'R0902', # Too many instance attributes (too-many-instance-attributes) 'R0912', # Too many branches (too-many-branches) @@ -70,5 +68,10 @@ disable = [ 'R0915', # Too many statements (too-many-statements) 'R0917', # Too many positional arguments (too-many-positional-arguments) 'W0613', # Unused argument (unused-argument) - # 'W1203', # Use lazy % formatting in logging functions (logging-fstring-interpolation) + + # TODO: the items below should be checked and corrected + 'C0103', # Variable name doesn't conform to snake_case naming style (invalid-name) + 'C0116', # Missing function or method docstring (missing-function-docstring) + 'W0511', # TODO / fixme (fixme) + 'W1203', # Use lazy % formatting in logging functions (logging-fstring-interpolation) ]