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

Floris Bruynooghe flub at devork.be
Mon Oct 27 05:08:55 PDT 2014

On 27 October 2014 10:06, Floris Bruynooghe <flub at devork.be> wrote:
> 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.

Never mind, it seems pylintrc is being picked up correctly for the
tests, not sure why I thought it wasn't.

Sorry for the noise,

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