Add an option (--show-versions?) to print out the list of tool plugins and their versions. Have the tool plugin implement a default get_version() method that returns Unknown. Where possible in the individual tool plugins implement a get_version() method that gets the version using the Python API or a subprocess call. Return the version as a string. Then make a table like
Tool
Version
black
1.2.3
pylint
4.5.6
cmake
7.8.9
Having a default implementation will allow external plugin repos and tools that do not have an easily accessible version to come up with a solution later.
Add an option (
--show-versions
?) to print out the list of tool plugins and their versions. Have the tool plugin implement a defaultget_version()
method that returnsUnknown
. Where possible in the individual tool plugins implement aget_version()
method that gets the version using the Python API or a subprocess call. Return the version as a string. Then make a table likeHaving a default implementation will allow external plugin repos and tools that do not have an easily accessible version to come up with a solution later.