Skip to content

.flake8_nb does not work in certain cases #243

Answered by s-weigand
jbloom asked this question in Q&A
Discussion options

You must be logged in to vote

If you use docs instead of docs/* it should work.
I tried docs/**/* and it also doesn't work, looks like this is an upstream issue with flake8 (at least on windows where it expands the pattern to a path with \\).
Also, you should rather use extend-exclude instead of exclude, that way you won't overwrite the default values of exclude (['.svn', 'CVS', '.bzr', '.hg', '.git', '__pycache__', '.tox', '.eggs', '*.egg', '.ipynb_checkpoints'])

If the notebook is failing because you want to show off some bad practice, you could just ignore those cells/the specific error in those cells (see cell-tags), that way you can show off the bad practice without accidentally adding some yourself in other plac…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by s-weigand
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #225 on August 15, 2022 19:13.