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

Reenable E402 and support for multiple paths #9

Merged
merged 1 commit into from
Mar 2, 2015

Conversation

ldoktor
Copy link
Contributor

@ldoktor ldoktor commented Feb 17, 2015

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 use git ls-files and check only the ones which are in this repository, rather than full recursive check.

Kind reagards,
Lukáš

@ldoktor
Copy link
Contributor Author

ldoktor commented Feb 17, 2015

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...

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>
@ldoktor
Copy link
Contributor Author

ldoktor commented Mar 2, 2015

@lmr what do you say about the multi-path support?

@lmr
Copy link
Member

lmr commented Mar 2, 2015

Oh, true. I think it's great. I'm going to re-read the patch and merge soon enough.

@lmr
Copy link
Member

lmr commented Mar 2, 2015

Looks good. Let me test this here.

lmr added a commit that referenced this pull request Mar 2, 2015
Reenable E402 and support for multiple paths
@lmr lmr merged commit df7e1eb into avocado-framework:master Mar 2, 2015
@lmr
Copy link
Member

lmr commented Mar 2, 2015

Thanks @ldoktor !

@lmr
Copy link
Member

lmr commented Mar 2, 2015

Now, directory scan has to be fixed.

@ldoktor
Copy link
Contributor Author

ldoktor commented Mar 2, 2015

What is wrong with the directory scan?

@ldoktor ldoktor deleted the args branch March 2, 2015 19:06
@lmr
Copy link
Member

lmr commented Mar 2, 2015

From your commit comment:

 The problem with directory scan is it descends to submodules and also corrupts the "git rerere" cache.

@ldoktor
Copy link
Contributor Author

ldoktor commented Mar 3, 2015

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....

@lmr
Copy link
Member

lmr commented Mar 3, 2015

Yep, I'm looking at ignoring .git directories.

@ldoktor
Copy link
Contributor Author

ldoktor commented Mar 3, 2015

One could argue, how about .svn, ...

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

Successfully merging this pull request may close these issues.

None yet

2 participants