-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Make the @required_version decorator a class definition parameter
#2046
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2046 +/- ##
==========================================
- Coverage 86.76% 86.74% -0.02%
==========================================
Files 52 52
Lines 9261 9271 +10
==========================================
+ Hits 8035 8042 +7
- Misses 1226 1229 +3
Continue to review full report at Codecov.
|
jjotero
left a comment
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.
Just a small comment on the warning message. The rest looks good.
|
Hello @ekouts, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated at 2021-07-14 20:02:07 UTC |
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.
We need to document these arguments in the manuals. I think that the best place is by adding the required_version (and pin_prefix and special) in the docstring of the RegressionTest base class.
|
Another thing that just crossed my mind is that we should probably be consistent with how we name the class arguments. For example, |
vkarak
left a comment
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.
I agree with @jjotero that we should find a proper location to document the class arguments. The natural place would be when documenting the RegressionTest class, but I don't know how we can inject in the documentation the arguments of the __init_subclass__.
vkarak
left a comment
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.
I have a couple of minor comments. I will have a look at the formatting problem you mentioned and I'll try to fix them too.
@required_version decorator a class argument@required_version decorator a class definition parameter

Closes #1797.
I liked a bit more the argument option, than the built-in syntax, but we can change it. The new syntax is:
Fooand all descendants will inherit the required versions, unless they specifyrequire_versionagain.