tholo / pytest-flake8

pytest plugin to run flake8
Other
117 stars 47 forks source link

Check extra files? #73

Open ashb opened 3 years ago

ashb commented 3 years ago

I would like this module to check my setup.py for flake8 validity, but for some reason it's not picking it up for me.

Is there any setting to list other files to check?

Could this be related to me using a src/ type layout for my package?

ashb commented 3 years ago

Ah, the problem was the cookie cutter I had used had defined python_files and testpath options for pytest. Removing that and it's checking all python files now.

ashb commented 3 years ago

Actually, is there a way I can add extra files specifically that only get flake8 checked, but that are ignored by pytest for tests? Particularly I'd like to check docs/conf.py and setup.py, but not have flake8 parse them for tests collection.