{"library":"pytest-pylint","title":"pytest-pylint","description":"pytest-pylint is a pytest plugin that integrates Pylint, a Python static code analysis tool, into the pytest testing framework. It allows developers to run Pylint checks as part of their test suite, ensuring code quality and adherence to coding standards. The library is actively maintained, with regular updates to support newer versions of pytest, Pylint, and Python. The current version is 0.21.0.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install pytest-pylint"],"cli":null},"imports":["Functionality is enabled via `pip install pytest-pylint` and invoked using pytest command-line options or configuration."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pytest\n\n# my_bad_module.py (example of code with a pylint warning)\ndef calculate(a, b):\n    result = a + b # W0612: Unused variable 'result'\n    return a + b\n\n# To run pylint with pytest, save the above in 'my_bad_module.py'\n# and create a dummy 'test_my_module.py' if needed for pytest discovery:\n# touch test_my_module.py\n\n# Then, run from your terminal:\n# pytest --pylint my_bad_module.py\n# Or to restrict error types:\n# pytest --pylint --pylint-error-types=E,F my_bad_module.py\n\n# Example .pylintrc content (optional, in project root):\n# [MESSAGES CONTROL]\n# disable=W0612\n\n# Example pytest.ini content (optional, in project root):\n# [pytest]\n# addopts = --pylint --pylint-error-types=E,F","lang":"python","description":"To use pytest-pylint, simply install it. It automatically integrates with pytest. You can then run pytest with the `--pylint` flag to enable Pylint checks. For more control, use `--pylint-rcfile` to specify a Pylint configuration file (e.g., `.pylintrc`) or `--pylint-error-types` to filter which message types cause a test failure (e.g., 'E' for error, 'F' for fatal, 'W' for warning, 'C' for convention, 'R' for refactor).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"0.21.0","pypi_latest":"0.21.0","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.7,"avg_import_s":null,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"39.3M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":3.7,"import_time_s":null,"mem_mb":null,"disk_size":"40M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"44.0M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":3.6,"import_time_s":null,"mem_mb":null,"disk_size":"45M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"35.3M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":3.4,"import_time_s":null,"mem_mb":null,"disk_size":"36M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"35.1M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":3.5,"import_time_s":null,"mem_mb":null,"disk_size":"36M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"38.9M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pytest-pylint","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":4.5,"import_time_s":null,"mem_mb":null,"disk_size":"39M"}]}}