[TIP] pylinrc in (py.test) testing directories

Floris Bruynooghe flub at devork.be
Mon Oct 27 03:06:21 PDT 2014


Hi,

I'm trying out pylint for a new project and have a question about it's
configuration.  As I understand it one can put a pylintrc file in a
python package to customise the errors reported.  I thought this would
be ideal to silence missing-docstrings in test directories, however
this doesn't work with a typical py.test project layout:

setup.py
pylintrc
my_pkg/
my_pkg/__init__.py
my_pkg/foo.py
testing/
testing/pylintrc
testing/test_foo.py

Notice the lack of __init__.py in the testing/ directory, AFAIK this
is usually recommended in py.test so that it is not picked up by
setuptools as a package and installed.  However it seems this means
the pylintrc file is not used.

Is there a common solution to this that I'm missing?

Thanks,
Floris


-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org



More information about the testing-in-python mailing list