pylint 3.3.7 astroid 3.3.8 Python 3.13.3 (main, Apr 22 2025, 00:00:00) [GCC 15.0.1 20250418 (Red Hat 15.0.1-0)] Redirect to /tmp/tmp.OWDWbKBEQ0 and /tmp/tmp.u2T4SdbcK1 Tree base: b25f978898b0 ("tools: netlink_yml_parser.py: add line numbers to parsed data") Now at: 9c80e50f9a40 ("docs: parser_yaml.py: add support for line numbers from the parser") ====== Checking before the patch ====== ************* Module parser_yaml Documentation/sphinx/parser_yaml.py:11:0: E0401: Unable to import 'docutils.parsers.rst' (import-error) Documentation/sphinx/parser_yaml.py:12:0: E0401: Unable to import 'docutils.statemachine' (import-error) Documentation/sphinx/parser_yaml.py:14:0: E0401: Unable to import 'sphinx.util' (import-error) Documentation/sphinx/parser_yaml.py:15:0: E0401: Unable to import 'sphinx.parsers' (import-error) Documentation/sphinx/parser_yaml.py:20:0: E0401: Unable to import 'doc_generator' (import-error) Documentation/sphinx/parser_yaml.py:47:15: W0718: Catching too general exception Exception (broad-exception-caught) Documentation/sphinx/parser_yaml.py:48:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/sphinx/parser_yaml.py:6:0: W0611: Unused import re (unused-import) ------------------------------------------------------------------ Your code has been rated at 2.00/10 (previous run: 2.00/10, +0.00) ************* Module pyynl.lib.doc_generator tools/net/ynl/pyynl/lib/doc_generator.py:25:0: R0901: Too many ancestors (9/7) (too-many-ancestors) tools/net/ynl/pyynl/lib/doc_generator.py:28:4: W0221: Number of parameters was 3 in 'SafeConstructor.construct_mapping' and is now 2 in overriding 'NumberedSafeLoader.construct_mapping' method (arguments-differ) ------------------------------------------------------------------ Your code has been rated at 9.91/10 (previous run: 9.91/10, +0.00) ====== Checking the tree with the patch ====== ************* Module parser_yaml Documentation/sphinx/parser_yaml.py:43:0: W0301: Unnecessary semicolon (unnecessary-semicolon) Documentation/sphinx/parser_yaml.py:11:0: E0401: Unable to import 'docutils.parsers.rst' (import-error) Documentation/sphinx/parser_yaml.py:12:0: E0401: Unable to import 'docutils.statemachine' (import-error) Documentation/sphinx/parser_yaml.py:14:0: E0401: Unable to import 'sphinx.util' (import-error) Documentation/sphinx/parser_yaml.py:15:0: E0401: Unable to import 'sphinx.parsers' (import-error) Documentation/sphinx/parser_yaml.py:20:0: E0401: Unable to import 'doc_generator' (import-error) Documentation/sphinx/parser_yaml.py:55:15: W0718: Catching too general exception Exception (broad-exception-caught) Documentation/sphinx/parser_yaml.py:56:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) ------------------------------------------------------------------ Your code has been rated at 3.17/10 (previous run: 2.00/10, +1.17) ************* Module pyynl.lib.doc_generator tools/net/ynl/pyynl/lib/doc_generator.py:25:0: R0901: Too many ancestors (9/7) (too-many-ancestors) tools/net/ynl/pyynl/lib/doc_generator.py:28:4: W0221: Number of parameters was 3 in 'SafeConstructor.construct_mapping' and is now 2 in overriding 'NumberedSafeLoader.construct_mapping' method (arguments-differ) ------------------------------------------------------------------ Your code has been rated at 9.91/10 (previous run: 9.91/10, +0.00)