s-weigand / flake8-nb

Flake8 checking for jupyter notebooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] configuration files ignored?

mathause opened this issue · comments

Describe the bug
I have a setup.cfg file in my project that seems to be ignored by flake8_nb (but not by flake8).

To Reproduce
Steps to reproduce the behavior:

Create a setup.cfg file containing

[flake8]
ignore=
    E501 # line too long 
  • run flake8 on a *.py file with a line that is too long
  • fun flake8_nb on a *.ipynb file with a line that is too long

Expected behavior
No E501 error.

Desktop (please complete the following information):

  • OS: linux
flake8                    3.8.4                      py_0    conda-forge
flake8-nb                 0.3.1              pyhd8ed1ab_0    conda-forge

Additional context
Add any other context about the problem here.

You need to change your config

-[flake8]
+[flake8_nb]

Since you are the second person raising this issue in a short time, I guess I should put the configuration more prominently in the readme.

Ah well one should read the docs before posting an issue - thanks.