-
Notifications
You must be signed in to change notification settings - Fork 999
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 framework test for profile behavior of format="input"
#15482
Add framework test for profile behavior of format="input"
#15482
Conversation
Is making that a linting error enough ? |
Yes, lets do this. |
001200a
to
e2ec896
Compare
e17310b
to
0b05080
Compare
There's a conflict here, otherwise this looks fine to me. |
1fa6ab4
to
0b05080
Compare
bbc14e2
to
cf3cac2
Compare
stumbled over this here: galaxyproteomics/tools-galaxyp#679 could not find a test
Good to go 😁 |
) | ||
if profile <= "16.01": | ||
lint_ctx.warn( | ||
f"Using format='input' on {node.tag}: format_source attribute is less ambiguous and should be used instead (with a non-legacy tool profile).", |
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.
Why not use the same message ? It'll work with or without profile version, and that's another linter.
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.
You mean: I should use this warning irrespective of the profile?
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.
Yes
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.
But use the one from below. No need to refer to the profile version, that is handled by another linter.
62f3138
to
0d7d7f3
Compare
0d7d7f3
to
f2fdb2c
Compare
irrespective of the profile
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.
Thanks that's quite an important linter.
51b5943
to
c563387
Compare
This PR was merged without a "kind/" label, please correct. |
stumbled over this here: galaxyproteomics/tools-galaxyp#679 could not find a test.
Wondering if we can/should be a bit more strict .. in the sense that some of the tool testing / linting would lead to an error that is easily recognized, e.g. by adding a linter rule or fail the tests if a unknown format is used (
"input"
in this case)In the original implementation of the profile behavior (b92074e) it is stated "Disable format="input" - require explicit metadata targets (metadata_source, format_source).". Currently "disable" means that just the format is set to the invalid datatype "input". Wondering if we want to change this to really disable this, e.g. by just failing tool execution.
How to test the changes?
(Select all options that apply)
License