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.7.0
Linting is performed before tests which enables code duplication checks to work along with a performance boost, thanks to @heoga
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pytest-pylint-0.7.0.tar.gz
.
File metadata
- Download URL: pytest-pylint-0.7.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 305cb8cfb29e4afd78972b36544c75ef145990f5359f4bd5c2f26817a255bcb9 |
|
MD5 | 6cf9d323abf15fdbbd2ee7ea61f80be7 |
|
BLAKE2b-256 | 56e4d5de9aefdd89dc637454e5d06341dfc82685dba19fc6d9ff06c50074a7dd |
Provenance
File details
Details for the file pytest_pylint-0.7.0-py3.5.egg
.
File metadata
- Download URL: pytest_pylint-0.7.0-py3.5.egg
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff96f77fa36aa9ae568276d6daf6758bf8aec3079f8c37a1419ce612abfe576 |
|
MD5 | 9d343d67f9aeb2fec4ae05672d765516 |
|
BLAKE2b-256 | d90d87ab43c21fa171782bf12d7c8126362dbd681587fd399d701c14ab69ff27 |
Provenance
File details
Details for the file pytest_pylint-0.7.0-py3.4.egg
.
File metadata
- Download URL: pytest_pylint-0.7.0-py3.4.egg
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4dc6dc1aedf85c7ec5fd5d26fa02bad29e691efeb40a52ec1339fe26b2b01ce |
|
MD5 | 4ef51b7291fc414edebfb9ca3478dc58 |
|
BLAKE2b-256 | 6643685c46917ce7a2276b210232838e9e809ac8602190740064d80c9477dd5c |
Provenance
File details
Details for the file pytest_pylint-0.7.0-py3.3.egg
.
File metadata
- Download URL: pytest_pylint-0.7.0-py3.3.egg
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf2dcf63f378c325442204b113bcf392504efed9c7ca11fd28d3ac36a61bc2b |
|
MD5 | 4c0e5bbe879d3f1de1f18d0528d38981 |
|
BLAKE2b-256 | 0402880d11142c32a60a5f613e807352ce2c27d4119a45a4650ab044f5bf2fa8 |
Provenance
File details
Details for the file pytest_pylint-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_pylint-0.7.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd20f91ae306e1409f297b7c6ca91fca4cb17abf1e80a8b480c7e9d74c661e08 |
|
MD5 | 601bb23a35b0e0fa0fdfe8641ccf584e |
|
BLAKE2b-256 | be0d42edd2e43ff4167d759a17be89f0ec5c9fd9c99cc1d6defb97e464d9bb6a |
Provenance
File details
Details for the file pytest_pylint-0.7.0-py2.7.egg
.
File metadata
- Download URL: pytest_pylint-0.7.0-py2.7.egg
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f611bbdb3a675e087a4f4849cb1e7e23428ba0a2abe4f2c161d960c35beb6ab1 |
|
MD5 | 985d3466d3fac423e9fab5cc076501b9 |
|
BLAKE2b-256 | 0019021a9160c06b1a46563fb9c92a54b4d1b312286a36e1821216c7b09cf0ec |
Provenance
File details
Details for the file pytest_pylint-0.7.0-py2-none-any.whl
.
File metadata
- Download URL: pytest_pylint-0.7.0-py2-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bafb971a7ca8762b2a90a86f951b0593c43c7b9db1aa58c049cca07714706a7 |
|
MD5 | e7066981244a22cf18e63d0925ad5ef9 |
|
BLAKE2b-256 | 2bbb43136b8d0e16ea9b4b36b1180a730817d8a13b835437ae8294e4ad50c1e7 |