-
Notifications
You must be signed in to change notification settings - Fork 7
Fix babs submit select argument parsing #312
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
base: main
Are you sure you want to change the base?
Fix babs submit select argument parsing #312
Conversation
…ning; add tests for list-of-lists inputs
@cursoragent I ran into a new error when trying to
|
I refactored the job submission logic in
3 tasks completed
Learn more about Cursor Agents |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #312 +/- ##
==========================================
- Coverage 80.78% 80.75% -0.04%
==========================================
Files 16 16
Lines 1509 1517 +8
Branches 234 237 +3
==========================================
+ Hits 1219 1225 +6
- Misses 182 183 +1
- Partials 108 109 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@mattcieslak - the select flag seems to work now - but obviously the usage isn't what I thought it was. I guess it can only be used one and not meant to be used iteratively?
|
@cursoragent - we use Ruff listing with a line limit of 99. Apply this to your changes. Also update the |
I refactored the job selection mechanism for
Learn more about Cursor Agents |
…xamples, and running-jobs behavior
@cursoragent line 444 in |
I refactored the test assertions within
Learn more about Cursor Agents |
|
Learn more about Cursor Agents |
Flatten
--select
arguments inparse_select_arg
to fixAttributeError
when usingbabs submit --select
.The
argparse
library, when configured withaction='append'
andnargs='+'
, can produce a list of lists for arguments like--select
. The originalparse_select_arg
function expected a flat list of strings, leading to anAttributeError
when it encountered a list instead of a string while calling.startswith()
. This change ensures the input is flattened into a single list of strings before further processing.