-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start working on mutation issues in validate.
We change the validation logic and separate the normalisation from the validation step. We make sure that if a notebook is normalized, it emits a warning. In the future we will turn the warning in to an Error. We add test for the current and an xfail test for the future behavior
- Loading branch information
Showing
5 changed files
with
342 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
Warnings that can be emitted by nbformat. | ||
""" | ||
|
||
|
||
class MissingIDFieldWarning(FutureWarning): | ||
""" | ||
This warning is emitted in the validation step of nbformat as we used to | ||
mutate the structure which is cause signature issues. | ||
This will be turned into an error at later point. | ||
We subclass FutureWarning as we will change the behavior in the future. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class DuplicateCellId(FutureWarning): | ||
""" | ||
This warning is emitted in the validation step of nbformat as we used to | ||
mutate the structure which is cause signature issues. | ||
This will be turned into an error at later point. | ||
We subclass FutureWarning as we will change the behavior in the future. | ||
""" | ||
|
||
pass |
Oops, something went wrong.