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.FQRyEFiHEY and /tmp/tmp.XPlPnyASS3 Tree base: b105904d250d ("tools: ynl_gen_rst.py: Split library from command line tool") Now at: dbf86cdfcba1 ("scripts: lib: netlink_yml_parser.py: use classes") ====== Checking before the patch ====== ************* Module netlink_yml_parser scripts/lib/netlink_yml_parser.py:109:4: R1715: Consider using dict.get for getting values from a dict if a key is present or a default if not (consider-using-get) ------------------------------------------------------------------ Your code has been rated at 9.95/10 (previous run: 9.95/10, +0.00) ************* Module pyynl.ynl_gen_rst tools/net/ynl/pyynl/ynl_gen_rst.py:31:0: E0401: Unable to import 'netlink_yml_parser' (import-error) tools/net/ynl/pyynl/ynl_gen_rst.py:31:0: C0413: Import "from netlink_yml_parser import parse_yaml_file, generate_main_index_rst" should be placed at the top of the module (wrong-import-position) tools/net/ynl/pyynl/ynl_gen_rst.py:97:15: W0718: Catching too general exception Exception (broad-exception-caught) ------------------------------------------------------------------ Your code has been rated at 8.68/10 (previous run: 8.68/10, +0.00) ====== Checking the tree with the patch ====== ************* Module netlink_yml_parser scripts/lib/netlink_yml_parser.py:185:0: C0301: Line too long (109/100) (line-too-long) scripts/lib/netlink_yml_parser.py:209:0: C0301: Line too long (104/100) (line-too-long) scripts/lib/netlink_yml_parser.py:31:0: C0115: Missing class docstring (missing-class-docstring) scripts/lib/netlink_yml_parser.py:121:8: R1715: Consider using dict.get for getting values from a dict if a key is present or a default if not (consider-using-get) scripts/lib/netlink_yml_parser.py:155:0: C0115: Missing class docstring (missing-class-docstring) scripts/lib/netlink_yml_parser.py:22:0: W0611: Unused import sys (unused-import) scripts/lib/netlink_yml_parser.py:23:0: W0611: Unused import argparse (unused-import) ------------------------------------------------------------------ Your code has been rated at 9.68/10 (previous run: 9.95/10, -0.28) ************* Module pyynl.ynl_gen_rst tools/net/ynl/pyynl/ynl_gen_rst.py:26:0: E0401: Unable to import 'netlink_yml_parser' (import-error) tools/net/ynl/pyynl/ynl_gen_rst.py:26:0: C0413: Import "from netlink_yml_parser import YnlDocGenerator" should be placed at the top of the module (wrong-import-position) tools/net/ynl/pyynl/ynl_gen_rst.py:94:15: W0718: Catching too general exception Exception (broad-exception-caught) ------------------------------------------------------------------ Your code has been rated at 8.70/10 (previous run: 8.68/10, +0.02)