Mayil-AI-Sandbox / pylint-on-April2022

GNU General Public License v2.0
0 stars 0 forks source link

Error #4

Open NobleMathews opened 1 month ago

NobleMathews commented 1 month ago

Bug description Some supported formats are not listed in the error messaging:

pyreverse -ASmy -o .puml my_package/my_module.py parsing my_package/my_module.py... Format: "puml" not recognized. Use one of: bmp canon cmap cmapx cmapx_np dot dot_json eps fig gd gd2 gif gtk gv ico imap imap_np ismap jpe jpeg jpg json json0 mp pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp x11 xdot xdot1.2 xdot1.4 xdot_json xlib Here, I have made the mistake of prepending a . to puml. The error output should list puml (and plantuml and mmd and vcg) as supported formats.

Without the preceding ., the command runs as expected.

Command used > pyreverse -ASmy -o .puml my_package/my_module.py Pylint output parsing my_package/my_module.py... Format: "puml" not recognized. Use one of: bmp canon cmap cmapx cmapx_np dot dot_json eps fig gd gd2 gif gtk gv ico imap imap_np ismap jpe jpeg jpg json json0 mp pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp x11 xdot xdot1.2 xdot1.4 xdot_json xlib Expected behavior All supported formats are listed when user makes a typo in the -o format argument

Pylint version

pylint --version pylint 2.12.2 astroid 2.9.3 Python 3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:59:51) [GCC 9.4.0] OS / Environment OpenSUSE Tumbleweed

mayil-ai[bot] commented 1 month ago

We are giving this another shot. Please hold tight!