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 --pylint-jobs=4
This would use the pylintrc file at /my/pyrc, only error on pylint Errors and Failures, and use 4 cores for running pylint.
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.14.1
Corrected pytest-pylint to properly support -p no:cacheprovider thanks to yanqd0
0.14.0
0.13.0
Python 3.7 compatibility verified
Ignore paths no longer match partial names thanks to heoga
0.12.3
jamur2 corrected issue where file paths where not being output properly on lint failures.
0.12.2
Resolved issue where failing files weren’t reported thanks to reports from skirpichev and jamur2
0.12.1
Corrected a bug preventing this plugin from working with py.test >= 3.7.0.
0.12.0
jwkvam added progress output during linting.
0.11.0
Added option --no-pylint to override --pylint for cases when it’s turned on by default.
0.10.0
jwkvam provided support for pylint 2.0
0.9.0
noisecapella added an option to run pylint with multiple processes
0.8.0
bdrung corrected inconsitent returns in a function
Dropped Python 3.3 support
0.7.1
Corrected path issue reported by Kargathia
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.14.1.tar.gz
.
File metadata
- Download URL: pytest-pylint-0.14.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c38ea779e540e27ec4378b0820d906006e09f4ac834defbd886abbf57c7d2ec |
|
MD5 | 18bb10dd524543d5234c0aba9b1bef99 |
|
BLAKE2b-256 | 3985752e77dac42f0b4e8bb8bc569542ce29315d628d4222d69371dca8455047 |
Provenance
File details
Details for the file pytest_pylint-0.14.1-py3-none-any.whl
.
File metadata
- Download URL: pytest_pylint-0.14.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f5e5007f88c2095dcac799e9f7eed3d7e7a2e657596e26093814980ff5fa20 |
|
MD5 | c813f0303d1fadc173f0f5ab7991aee1 |
|
BLAKE2b-256 | 64dc6f35f114844fb12e38d60c4f3d2441a55baff7043ad4e013777dff55746c |
Provenance
File details
Details for the file pytest_pylint-0.14.1-py2-none-any.whl
.
File metadata
- Download URL: pytest_pylint-0.14.1-py2-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a574c246535308f8f6ceac10fa82f8fffffa837071f7985b22515895185700c1 |
|
MD5 | 6ab19792cdf5a64463beaa3b6a9207af |
|
BLAKE2b-256 | cec5efd1ed26876d25fe685f2d0110e85ccde07069995753fb2b614d7f966fc1 |