Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/run-flake8: run on Python scripts not ending with .py
When running flake8 on a directory, it does not analyze files without an extension, like semanage_migrate_store, mlscolor-test, etc. Use grep to find files with a Python shebang and build a list which is then given to flake8. This commit is possible now that some clean-up patches have been applied, such as commit 69c56bd ("python/chcat: improve the code readability") and b7227aa ("mcstrans: fix Python linter warnings on test scripts") and 3cb974d ("semanage_migrate_store: fix many Python linter warnings"). Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
- Loading branch information