-
Notifications
You must be signed in to change notification settings - Fork 71
New option to skip preparing existing problem directories #222
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
New option to skip preparing existing problem directories #222
Conversation
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 for your contribution & sophisticated PR description!
I put a few comments and I think it will get ready to be merged once they have resolved.
Can you take a look at those comments?
Codecov Report
@@ Coverage Diff @@
## stable #222 +/- ##
=========================================
Coverage ? 89.56%
=========================================
Files ? 54
Lines ? 2780
Branches ? 0
=========================================
Hits ? 2490
Misses ? 290
Partials ? 0
Continue to review full report at Codecov.
|
I applied all your suggestions! |
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.
LGTM
Why is this change needed?
When problems are added to an existing contest, it would be useful to be able to skip the generation of the existing problems and generate only the new ones.
Related to #220.
What did you implement?
Add a config option:
--skip-existing-problem
for envgenIf the option is enabled, skip preparing each problem for which a directory already exists
Add test for
--skip-existing-problem
--skip-existing-problem
option--skip-existing-problem
optionWhat behavior do you expect?
Refer to the test.