You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although nbsmoke will handle certain magics that execute python in the current process (e.g. %time x will be flake checked as x), and certain magics will be silently ignored (e.g. %matplotlib), if it encounters a magic it doesn't know about, it skips it but prints a warning. However, there are many built-in magics that don't interact with the current python process, so should just be silently ignored. (And if there are any important/valuable ones which do things like set a variable in the current python process, we could consider supporting them.)
The text was updated successfully, but these errors were encountered:
Adds some basic missing features, and cleans up some internals.
Note: some ipython magic handling has changed (should be an improvement/more consistent behavior).
New features:
* support for flake messages to ignore (by regex) - fixes#22
* support for magics blacklist (i.e. magics that if present cause a flake) - fixes#21
* added support for script & capture cell magics (mainly as a demo) - fixes#24
* increased the number of builtin magics that will be silently ignored (as they don't interact with the python process), e.g. bookmark, edit, who, etc - fixes#24
* lint failures can be set to be warnings only (potentially useful for systems that report warnings)
Internal changes:
* Separated out parts into modules:
* the original/basic functionality (checking notebooks run without errors)
* "verifying" (copied from datashader, which was copied from bokeh?)
* lint/flake checking (using pyflakes)
* magics handling for flakes
* Improve lint/magics debugging by storing various intermediate files.
* Simplify lint checking of magics, making behavior more consistent.
* Replaced custom/hacky magics parsing with stuff from ipython itself (fixes#8)
* MAGICS_TO_IGNORE and SIMPLE_MAGICS: separated cell and line magics (internal change to support more magics) - fixes#23
* Improved unit test coverage (think all code is now covered except "verify").
Although nbsmoke will handle certain magics that execute python in the current process (e.g.
%time x
will be flake checked asx
), and certain magics will be silently ignored (e.g.%matplotlib
), if it encounters a magic it doesn't know about, it skips it but prints a warning. However, there are many built-in magics that don't interact with the current python process, so should just be silently ignored. (And if there are any important/valuable ones which do things like set a variable in the current python process, we could consider supporting them.)The text was updated successfully, but these errors were encountered: