pytest-pylint
pytest plugin to check source code with pylint
Decision gist · record as of 2026-08-14
Yes, if you want linting integrated into pytest and your project targets Python 3.8–3.12 with pytest >= 7.0 and pylint >= 2.15. The plugin is stable and low-friction to install, but dormant maintenance means it won't receive updates for new pytest or pylint versions—verify compatibility with your specific versions before relying on it in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pylint >= 2.15 and pytest >= 7.0; Python >= 3.7 required.
- Low friction install with three straightforward runtime dependencies.
- Maintenance is dormant—last release was over a year ago—but the package is marked Production/Stable and supports current Python versions.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this plugin freely with minimal restrictions, making it suitable for both open-source and proprietary projects.
last release 2023-10-06 (1043 days) · last repo commit 2024-04-13 · 76 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 616,413 downloads/mo, #5,741 on PyPI
Alternatives
Verify before relying
pip install pytest-pylint
# In your test run:
py.test --pylint
# Or with options:
py.test --pylint --pylint-rcfile=/path/to/.pylintrc --pylint-error-types=EF- Whether the plugin works correctly with pytest 8.0+ (description notes it 'should work' but lacks confirmation).
- Current status of any compatibility issues with the latest pylint releases beyond 2.15.
- Practical experience with the plugin on Python 3.12 in production environments.
What it is and what it does
pytest-pylint is a pytest plugin that runs pylint static analysis checks as part of your test suite. Instead of running pylint separately, you invoke it through pytest with the `--pylint` flag, and it lints your source code according to your pylintrc configuration. You can choose which pylint message types (Errors, Failures, Warnings, Conventions) cause the test to fail, run linting in parallel across multiple cores, and optionally output results to a file. The plugin caches successful lint checks to speed up reruns when files haven't changed.
The package depends on pytest, pylint, and tomli (for TOML configuration support). It's designed for teams that want linting feedback integrated into their continuous test workflow rather than as a separate CI step, and it supports regex-based ignore patterns and smart pylintrc discovery.
Use it for
- Enforce code quality gates in CI/CD by failing the build on pylint errors or warnings during test runs.
- Run linting checks in parallel across multiple CPU cores to speed up large codebases.
- Restrict test execution to only pylint checks (skipping unit tests) with `py.test --pylint -m pylint`.
- Cache lint results between test reruns to avoid re-linting unchanged files.
- Integrate custom pylintrc files and ignore patterns into your pytest workflow without separate configuration.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you want linting integrated into pytest and your project targets Python 3.8–3.12 with pytest >= 7.0 and pylint >= 2.15.
The plugin is stable and low-friction to install, but dormant maintenance means it won't receive updates for new pytest or pylint versions—verify compatibility with your specific versions before relying on it in new projects.
Install
pytest-pylint on PyPI
Before you install
Low friction install with three straightforward runtime dependencies. Maintenance is dormant—last release was over a year ago—but the package is marked Production/Stable and supports current Python versions. No recent activity suggests the plugin works as-is for its scope.
Requires pylint >= 2.15 and pytest >= 7.0; Python >= 3.7 required.
License in practice
MIT license is permissive; you can use, modify, and distribute this plugin freely with minimal restrictions, making it suitable for both open-source and proprietary projects.
Quickstart
pip install pytest-pylint
# In your test run:
py.test --pylint
# Or with options:
py.test --pylint --pylint-rcfile=/path/to/.pylintrc --pylint-error-types=EF
Verify before relying
- Whether the plugin works correctly with pytest 8.0+ (description notes it 'should work' but lacks confirmation).
- Current status of any compatibility issues with the latest pylint releases beyond 2.15.
- Practical experience with the plugin on Python 3.12 in production environments.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespytestpylinttomli |
| Maintenance | Dormant 1,043 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 616,413 / month, #5,741 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pytest_pylint-0.21.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “run pylint with pytest”
- pytest-pylintIntegrates pylint code analysis into pytest, allowing you to run…
- pylint-pytestA Pylint plugin that suppresses false-positive warnings when…
- pytest-onlyA pytest plugin that runs only tests marked with @pytest.mark.only,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also pytest-ruff · pylint-per-file-ignores · pylint-exit · pylint-pytest · pytest-pep8 · pylint-pydantic · pylint-odoo · pylint-junit · fixit · mypy_baseline