Skip to main content

pytest plugin to check source code with pylint

Project description

https://img.shields.io/travis/carsongee/pytest-pylint.svg https://img.shields.io/coveralls/carsongee/pytest-pylint.svg https://img.shields.io/pypi/v/pytest-pylint.svg https://img.shields.io/pypi/dm/pytest-pylint.svg https://img.shields.io/pypi/l/pytest-pylint.svg

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.7.0

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

Project details


Download files

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

Source Distribution

pytest-pylint-0.7.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distributions

pytest_pylint-0.7.0-py3.5.egg (7.5 kB view details)

Uploaded Source

pytest_pylint-0.7.0-py3.4.egg (7.5 kB view details)

Uploaded Source

pytest_pylint-0.7.0-py3.3.egg (7.7 kB view details)

Uploaded Source

pytest_pylint-0.7.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

pytest_pylint-0.7.0-py2.7.egg (4.1 kB view details)

Uploaded Source

pytest_pylint-0.7.0-py2-none-any.whl (5.8 kB view details)

Uploaded Python 2

File details

Details for the file pytest-pylint-0.7.0.tar.gz.

File metadata

File hashes

Hashes for pytest-pylint-0.7.0.tar.gz
Algorithm Hash digest
SHA256 305cb8cfb29e4afd78972b36544c75ef145990f5359f4bd5c2f26817a255bcb9
MD5 6cf9d323abf15fdbbd2ee7ea61f80be7
BLAKE2b-256 56e4d5de9aefdd89dc637454e5d06341dfc82685dba19fc6d9ff06c50074a7dd

See more details on using hashes here.

Provenance

File details

Details for the file pytest_pylint-0.7.0-py3.5.egg.

File metadata

File hashes

Hashes for pytest_pylint-0.7.0-py3.5.egg
Algorithm Hash digest
SHA256 9ff96f77fa36aa9ae568276d6daf6758bf8aec3079f8c37a1419ce612abfe576
MD5 9d343d67f9aeb2fec4ae05672d765516
BLAKE2b-256 d90d87ab43c21fa171782bf12d7c8126362dbd681587fd399d701c14ab69ff27

See more details on using hashes here.

Provenance

File details

Details for the file pytest_pylint-0.7.0-py3.4.egg.

File metadata

File hashes

Hashes for pytest_pylint-0.7.0-py3.4.egg
Algorithm Hash digest
SHA256 e4dc6dc1aedf85c7ec5fd5d26fa02bad29e691efeb40a52ec1339fe26b2b01ce
MD5 4ef51b7291fc414edebfb9ca3478dc58
BLAKE2b-256 6643685c46917ce7a2276b210232838e9e809ac8602190740064d80c9477dd5c

See more details on using hashes here.

Provenance

File details

Details for the file pytest_pylint-0.7.0-py3.3.egg.

File metadata

File hashes

Hashes for pytest_pylint-0.7.0-py3.3.egg
Algorithm Hash digest
SHA256 4bf2dcf63f378c325442204b113bcf392504efed9c7ca11fd28d3ac36a61bc2b
MD5 4c0e5bbe879d3f1de1f18d0528d38981
BLAKE2b-256 0402880d11142c32a60a5f613e807352ce2c27d4119a45a4650ab044f5bf2fa8

See more details on using hashes here.

Provenance

File details

Details for the file pytest_pylint-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_pylint-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd20f91ae306e1409f297b7c6ca91fca4cb17abf1e80a8b480c7e9d74c661e08
MD5 601bb23a35b0e0fa0fdfe8641ccf584e
BLAKE2b-256 be0d42edd2e43ff4167d759a17be89f0ec5c9fd9c99cc1d6defb97e464d9bb6a

See more details on using hashes here.

Provenance

File details

Details for the file pytest_pylint-0.7.0-py2.7.egg.

File metadata

File hashes

Hashes for pytest_pylint-0.7.0-py2.7.egg
Algorithm Hash digest
SHA256 f611bbdb3a675e087a4f4849cb1e7e23428ba0a2abe4f2c161d960c35beb6ab1
MD5 985d3466d3fac423e9fab5cc076501b9
BLAKE2b-256 0019021a9160c06b1a46563fb9c92a54b4d1b312286a36e1821216c7b09cf0ec

See more details on using hashes here.

Provenance

File details

Details for the file pytest_pylint-0.7.0-py2-none-any.whl.

File metadata

File hashes

Hashes for pytest_pylint-0.7.0-py2-none-any.whl
Algorithm Hash digest
SHA256 7bafb971a7ca8762b2a90a86f951b0593c43c7b9db1aa58c049cca07714706a7
MD5 e7066981244a22cf18e63d0925ad5ef9
BLAKE2b-256 2bbb43136b8d0e16ea9b4b36b1180a730817d8a13b835437ae8294e4ad50c1e7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page