tholo / pytest-flake8

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

All flake8 tests skipped #62

Closed berislavlopac closed 5 years ago

berislavlopac commented 5 years ago

I'm running the tests with a command like this:

pytest --flake8 src/database/tables.py

However, whatever I do, all flake8 tests are skipped:

collected 1 item                                                                                                       

src/database/tables.py s                                                         [100%]

flake8 works fine on its own. Any ideas where to look for the problem? Thanks!

tholo commented 5 years ago

This is by design -- things that came out clean are cached and unless modified, not tested again.

You can run with pytest --cache-clear --flake8 to override this.

berislavlopac commented 5 years ago

Ah I see -- thank you!