Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check files with no '.' extension #27

Open
jhoblitt opened this issue Jul 26, 2017 · 3 comments
Open

check files with no '.' extension #27

jhoblitt opened this issue Jul 26, 2017 · 3 comments

Comments

@jhoblitt
Copy link

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?

@pelt
Copy link

pelt commented Feb 9, 2019

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

@jhoblitt
Copy link
Author

jhoblitt commented Mar 2, 2019

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.

@eirnym
Copy link

eirnym commented Jun 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants