skip to navigation
skip to content

pytest-pylint 0.7.0

pytest plugin to check source code with pylint

Run pylint with pytest and have configurable rule types (i.e. Convention, Warn, and Error) fail the build. You can also specify a pylintrc file.

Sample Usage

py.test --pylint

would be the most simple usage and would run pylint for all error messages.

py.test --pylint --pylint-rcfile=/my/pyrc --pylint-error-types=EF

This would use the pylintrc file at /my/pyrc and only error on pylint Errors and Failures.

You can restrict your test run to only perform pylint checks and not any other tests by typing:

py.test --pylint -m pylint


This code is heavily based on pytest-flakes



  • Linting is performed before tests which enables code duplication checks to work along with a performance boost, thanks to @heoga
File Type Py Version Uploaded on Size
pytest-pylint-0.7.0.tar.gz (md5) Source 2017-02-04 4KB
pytest_pylint-0.7.0-py2-none-any.whl (md5) Python Wheel 2.7 2017-02-04 5KB
pytest_pylint-0.7.0-py2.7.egg (md5) Python Egg 2.7 2017-02-04 4KB
pytest_pylint-0.7.0-py3-none-any.whl (md5) Python Wheel 3.4 2017-02-04 5KB
pytest_pylint-0.7.0-py3.3.egg (md5) Python Egg 3.3 2017-02-04 7KB
pytest_pylint-0.7.0-py3.4.egg (md5) Python Egg 3.4 2017-02-04 7KB
pytest_pylint-0.7.0-py3.5.egg (md5) Python Egg 3.5 2017-02-04 7KB