-
Notifications
You must be signed in to change notification settings - Fork 20
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
Metric versioning #93
base: main
Are you sure you want to change the base?
Conversation
…ified the corresponding metric py file
@jordiclive thanks, this looks like a good idea! I'd have a few questions & proposals:
|
@tuetschek. Thanks for taking a look :) Yep, definitely agree with all those! With automating, if you mean |
@jordiclive Yeah that's what I meant – but I'm actually not sure how to do it, since you first need to commit the metric and then run the script, which would essentially need another commit to store the version hashes 🤔? |
@tuetschek, yes you are right. And would be getting quite complicated! This is probably something for setuptools or having json saved somewhere else. |
@jordiclive Does this mean you think it's too complicated now 🙂? I guess we could just have some tests that would essentially force you to commit the JSON every time you're changing a metric file... but yeah, maybe it would take time to figure out. |
Ha, no I'm happy to continue! I just thought there may be a more elegant way with setuptools. Maybe if a commit is logged before the force commit. As we need two commits and then it to stop. I think it is possible with a post-commit hook. I will look into that. |
A possible way to solve Issue #59.
We could make sure metric_version.py is run every new commit and then each metric can have an attribute loaded from the resulting json or yaml file.
metric_version.py finds the last commit that modified the respective metric file.