Closed ldoktor closed 9 years ago
OK, removing the inspektor.style
as we use magic to insert sys.path
in some of the files and PEP8 doesn't support per-error in-code mask. Anyway the detection works fine now...
@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.
Thanks @ldoktor !
Now, directory scan has to be fixed.
What is wrong with the directory scan?
From your commit comment:
The problem with directory scan is it descends to submodules and also corrupts the "git rerere" cache.
Well I'm not sure you have an easy way to fix this. You can either skip .git
directories, or skip all hidden directories or just leave it on the users....
Yep, I'm looking at ignoring .git
directories.
One could argue, how about .svn
, ...
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áš