Skip to content

[BUG] Not reading flake8 config from tox.ini #245

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

You must be logged in to vote

If you want to achieve this you need to slightly change your configuration and use

[flake8_nb]
max-line-length = 20

The reason for this is that flake8-nb hacks the internals of flake8 to treat the Notebooks like a Schödingers cat where they are ignored (json blob, which a notebook is under the hood) and checked (converted to python file version which gets mapped back in the reporter).

The origin of this project and what it is mostly geared to is writing teaching material and tutorials, where you want to keep up code quality, but at the same time demonstrate "bad code" without adding the complexity of linter exception (cell tag configuration). That said this is more a feature than a bug, s…

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
question Further information is requested wontfix This will not be worked on
2 participants
Converted from issue

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