-
Notifications
You must be signed in to change notification settings - Fork 59
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
cmd_arg
and cmd_out
syntactic sugar funcs for attrs.field in ShellSpec
/ShellOutSpec
#653
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #653 +/- ##
==========================================
- Coverage 81.77% 81.76% -0.01%
==========================================
Files 20 21 +1
Lines 4400 4410 +10
Branches 1264 0 -1264
==========================================
+ Hits 3598 3606 +8
- Misses 798 804 +6
+ Partials 4 0 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
If you look at the codecov report, the coverage doesn't actually change, so not sure where the -5.07% drop is coming from |
See discussion in #647 for background on this PR |
do I understand correctly that #655 replaces this one? |
Closing until #692 is settled |
Types of changes
Summary
Adds the
pydra.mark.shell_commands.cmd_arg()
andpydra.mark.shell_commands.cmd_out()
methods to streamline the definition of input/output specs for shell command task definitions. Instead of creating an attrs.field by hand and setting the metadata directly,cmd_arg
andcmd_out
do this for you.The main benefit is that
cmd_arg
andcmd_out
specify the valid metadata fields that can be added to the input and output fields, making the code more self-documenting. It also makes the task definitions slightly less verbose.Checklist