pytest-flake8
pytest-flake8 copied to clipboard
check files with no '.' extension
I would like to flake8 a script that has no file extension. I've tried setting various ini values such as flake8-extensions = * without success. Perhaps this could be supported via a configuration param with a list of files to explicitly check?
I tried to reproduce your issue and the solution is to use an empty string defined by two single quotes in a row. My pytest.ini is:
[pytest]
flake8-extensions = ''
Setting '' causes pytest-pythonpath to be a no-op and flake8 is run against every file under the root. This isn't a practical option.
What's about using console_scripts/gui_scripts in setup.py/setup.cfg to avoid scripts with no extension?