StackGuardian/tirith

๐Ÿš€ `tirith/cli.py`: version should be taken from `__init__.py` not redefine it

Closed this issue ยท 3 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

Hi Sir,
I'm interested in solving this issue. Could you please assign it to me?

Sure, assigned

Fixed by #142