-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to identify min_python version #2
base: main
Are you sure you want to change the base?
Conversation
8a66bd1
to
0ec7263
Compare
@RonnyPfannschmidt Please review. After implementing this, I will add one method for generating the JSON for GHA test matrix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO ctors with logic ought to be avoid, they sabotage Testability among other details
# written, this was the oldest still supported version of Python | ||
min_python: str = "3.7" | ||
|
||
def __init__(self, path: Union[Path, str] = Path(".")) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a named constructor for the logic part
Any suggestions? I would prefer to keep usage as simple as possible. Initially i was considering avoiding a class but sooner or later we will want to read other info about the project. |
Use named constructors and/or a global construction function |
No description provided.