Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

pytest plugin to check source code with pylint

Project Description

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

Acknowledgements

This code is heavily based on pytest-flakes

Releases

0.8.0

  • bdrung corrected inconsitent returns in a function
  • Dropped Python 3.3 support

0.7.1

0.7.0

  • Linting is performed before tests which enables code duplication checks to work along with a performance boost, thanks to @heoga

Release History

This version
History Node

0.8.0

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.1

History Node

0.4.0

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
pytest_pylint-0.8.0-py2.7.egg
(7.8 kB) Copy SHA256 Hash SHA256
2.7 Egg Feb 2, 2018
pytest_pylint-0.8.0-py2-none-any.whl
(6.1 kB) Copy SHA256 Hash SHA256
2.7 Wheel Feb 2, 2018
pytest_pylint-0.8.0-py3.4.egg
(7.8 kB) Copy SHA256 Hash SHA256
3.4 Egg Feb 2, 2018
pytest_pylint-0.8.0-py3.5.egg
(7.8 kB) Copy SHA256 Hash SHA256
3.5 Egg Feb 2, 2018
pytest_pylint-0.8.0-py3.6.egg
(4.3 kB) Copy SHA256 Hash SHA256
3.6 Egg Feb 2, 2018
pytest_pylint-0.8.0-py3-none-any.whl
(6.1 kB) Copy SHA256 Hash SHA256
3.6 Wheel Feb 2, 2018
pytest-pylint-0.8.0.tar.gz
(4.8 kB) Copy SHA256 Hash SHA256
Source Feb 2, 2018

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting