tirith icon indicating copy to clipboard operation
tirith copied to clipboard

🚀 `tirith/cli.py`: version should be taken from `__init__.py` not redefine it

Open refeed opened this issue 2 years ago • 0 comments

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: image

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

refeed avatar May 04 '23 02:05 refeed