-
Notifications
You must be signed in to change notification settings - Fork 17
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
Reenable E402 and support for multiple paths #9
Conversation
OK, removing the |
This commit adds support to specify multiple files. The intention is to enable users to execute "inspektor style -- `git ls-files`" instead full directory scan. The problem with directory scan is it descends to submodules and also corrupts the "git rerere" cache. Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
@lmr what do you say about the multi-path support? |
Oh, true. I think it's great. I'm going to re-read the patch and merge soon enough. |
Looks good. Let me test this here. |
Reenable E402 and support for multiple paths
Thanks @ldoktor ! |
Now, directory scan has to be fixed. |
What is wrong with the directory scan? |
From your commit comment:
|
Well I'm not sure you have an easy way to fix this. You can either skip |
Yep, I'm looking at ignoring |
One could argue, how about |
Hi @lmr,
I looked again at the E402 problem and the latest PEP8 update fixes the issue with E402 being incorrectly detect by PEP8 when used as module. I think we should re-enable it again (there are couple of nasty modules in avocado, thought, but no false-positives).
The second commit is because I had my
git rerere
poisoned by inspektor. It's really better to usegit ls-files
and check only the ones which are in this repository, rather than full recursive check.Kind reagards,
Lukáš