pytest-flake8 icon indicating copy to clipboard operation
pytest-flake8 copied to clipboard

check files with no '.' extension

Open jhoblitt opened this issue 6 years ago • 3 comments

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?

jhoblitt avatar Jul 26 '17 18:07 jhoblitt

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 = ''

pelt avatar Feb 09 '19 21:02 pelt

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.

jhoblitt avatar Mar 02 '19 19:03 jhoblitt

What's about using console_scripts/gui_scripts in setup.py/setup.cfg to avoid scripts with no extension?

eirnym avatar Jun 22 '19 07:06 eirnym