Package: pytest-pylint
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 Usagepy.test--pylintwould 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=4This 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-mpylintAcknowledgementsThis code is heavily based onpytest-flakesDevelopmentIf you want to help development, there isoverview documentationReleases0.21.0Dropped support for pytest < 7.0 in preparation for pytest 8.0 (should work with it when it comes out)Dropped support for pylint < 2.15 to work better with Python 3.11 and drop backwards compatibility codeUse baked in TOML support with fallback to newer tomli library thanks tomgorny0.20.0Corrected issues introduced by deprecations in pylintAdded support for Python 3.12 and dropped support for Python 3.7Last version that will support pytest < 7 and pylint < 2.60.19.0Switched to GitHub Actions for CI thanks tomichael-kSwitched to using smart PyLint RC discovery thanks tobennyrowlandCorrecting rootdir/rootpath issues in pytest >7.xDeprecated support for Python <3.70.18.0Added support for creating missing folders when using--pylint-output-fileNow when pylint’signore_patternsis blank, we don’t ignore all filesAdded cache invalidation when your pylintrc changesVerified support for latest pytest and Python 3.9Corrected badly named nodes (duplicated path) thanks toyanqd0Added tests to source distribution thanks tosbraz0.17.0Added support for latest pylint API >=2.5.10.16.1Corrected documentation and correctly pinned dependencies properly0.16.0Switched to newfrom_parentAPI and added development documentationdineshtrivediAdded support for toml based configuration of pylint thanks tomichael-k0.15.1Made–no-pylintfunctional again0.15.0Added support for Python 3.8 thanks tomichael-kImplemented option to output Pylint results to a reports file thanks tojose-lpaRefactored into simpler plugin structure0.14.1Corrected pytest-pylint to properly support-pno:cacheproviderthanks toyanqd00.14.0Added support for Pylint’s ignore-patterns for regex based ignores
thanks tokhokhlinpytest-pylint now caches successful pylint checks to speedup test
reruns when files haven’t changed thanks toyanqd00.13.0Python 3.7 compatibility verifiedIgnore paths no longer match partial names thanks toheoga0.12.3jamur2corrected issue where file
paths where not being output properly on lint failures.0.12.2Resolved issue where failing files weren’t reported thanks to reports fromskirpichevandjamur20.12.1Corrected a bug preventing this plugin from working with py.test >= 3.7.0.0.12.0jwkvamadded progress output during linting.0.11.0Added option--no-pylintto override--pylintfor cases when
it’s turned on by default.0.10.0jwkvamprovided support for pylint 2.00.9.0noisecapellaadded an option to
run pylint with multiple processes0.8.0bdrungcorrected inconsistent returns in a functionDropped Python 3.3 support0.7.1Corrected path issue reported byKargathia0.7.0Linting is performed before tests which enables code duplication
checks to work along with a performance boost, thanks to @heoga