-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
gc: make it safer by only activating by use of certain flags #3363
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ class DvcException(Exception): | |
"""Base class for all dvc exceptions.""" | ||
|
||
|
||
class InvalidArgumentError(ValueError, DvcException): | ||
"""Thrown if arguments are invalid.""" | ||
Comment on lines
+10
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice one! Should we use it in otherplaces like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd opt for it on a different PR. 🙂 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @skshetry Sure, let's not forget about it though 🙂 |
||
|
||
|
||
class OutputDuplicationError(DvcException): | ||
"""Thrown if a file/directory is specified as an output in more than one | ||
stage. | ||
|
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.
A general thought, not about this PR, - we should stop automatically making command line options into boolean kwargs, e.g. using
set()
would be more appropriate here.