Pylint wrapper that verifies code reaches a minimum quality score.
Project description
Pylint wrapper that verifies code reaches a minimum quality score.
Quick Start
Execute the pylint-fail-under command with the same arguments as a pylint call. In addition, specify the minimum Pylint quality score with the --fail_under argument.
If the Pylint score is greater than the fail under value, the script exits successfully with an exit code of zero. For example:
$ pylint-fail-under --fail_under 9.0 my_package ************* Module my_package my_package\__init__.py:1:0: C0111: Missing module docstring (missing-docstring) ### Pylint output removed for documentation conciseness! ### my_package\tests\test_my_pkg.py:328:0: C0303: Trailing whitespace (trailing-whitespace) ------------------------------------------------------------------ Your code has been rated at 9.49/10 (previous run: 9.49/10, +0.00)
Otherwise, if the Pylint score is under the minimum, the script exits with a non-zero exit code. For example:
$ pylint-fail-under --fail_under 9.75 my_package ************* Module my_package my_package\__init__.py:1:0: C0111: Missing module docstring (missing-docstring) ### Pylint output removed for documentation conciseness! ### my_package\tests\test_my_pkg.py:328:0: C0303: Trailing whitespace (trailing-whitespace) ------------------------------------------------------------------ Your code has been rated at 9.49/10 (previous run: 9.49/10, +0.00) ERROR: score 9.4921875 is less than fail-under value 9.75
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pylint_fail_under-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afa9656384fb764e16ba232eed941ac16edc5081b4e91c45f3d938d530cb9599 |
|
MD5 | 886425316bffc991a6f8907a32054bea |
|
BLAKE2b-256 | 1f046f5890100c10b8258eec73d335b196ad2b24c3cbb9e1df73b0f8f9f0b4f1 |