Runs on all files in directory, not just my project #5

onlynone opened this Issue Feb 12, 2014 · 1 comment


None yet
2 participants

When I run:

python nosetests

It downloads several packages, like nose-1.3.0-py2.7.egg to the current directory (I kind of wish these would go into the virtualenv I have defined, but that's a different story). Then when I run:

python pep8

It runs pep8 on all these dependencies that were downloaded. I don't really care if there are issues in nose or coverage. I'd like it to just run on my package/module. It looks like setuptools-pylint is able to do this.


CraigJPerry commented Feb 12, 2014

Before doing python nosetests do a pip install . that will install the deps to your virtualenv site packages instead of the package dir.

The above solves your problem, but if you find another use case for skipping dirs, you can configure them with python pep8 --exclude dir1/,dir2/,dir3/ or you can add a pep8 stanza to your package's setup.cfg file so you don't need to specify --exclude every time:

$ cat setup.cfg
exclude = dir1, dir2, dir3

@CraigJPerry CraigJPerry self-assigned this Feb 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment