Cleanup examples and re-enable pep8 #8603
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
PEP8 has not been running for a while, so fix the examples and do a bit of minor cleanup. Most of the PEP8 stuff is just deleting or adding blank lines. For the cleanup, I tried to use
plt.subplots
a bit more often in the examples that were updated.The reason why so many examples are suddenly failing is that a whole directory was moved out of
docs
toexamples
and docs are pep8-exempt.For the
tutorials
directory, I've allowedE402
andE501
; these are already exempted for theexamples
directory and there are already very many long lines, so "fixing" this would cause a lot of churn and in some cases (tables, URLs, mostly) appear rather ugly.Fixes #8498.
PR Checklist