tirith
tirith copied to clipboard
🚀 `tirith/cli.py`: version should be taken from `__init__.py` not redefine it
Is your feature request related to a problem? Please describe. Nope, just an enhancement.
Describe the solution you'd like When bumping the version, we generally need to search the string of current version in all files and replace it with the new version. Ideally, there should be only one place to change, i.e. one definition of the version, then the other modules that wants to use the version just need to reuse the definition and not redefine it.
One example of this is:

The definition of version in cli.py could be easily replaced with the definition from __init__.py