Lint Python files with a shebang

When a pattern is not passed to flake8 (--filename), look for all files
that end with .py as well as extension-less files that start with a
Python shebang. Helps project lint scripts that may not have an
extension.

Fixes #409
This commit is contained in:
Jon Dufresne 2018-06-06 12:25:26 -07:00
parent a2b7a7e4c5
commit 36a70fd110
4 changed files with 79 additions and 3 deletions

1
tests/fixtures/example-code/script vendored Normal file
View file

@ -0,0 +1 @@
#!/usr/bin/env python