pylint Plugin
Python static code analysis and linter.
Commands
Lint
pylint lint run— Lint Python filespylint lint json— Lint Python files and output JSON
Usage Examples
- "Check this Python file for errors"
- "Lint my Python project"
- "Find code smells in my Python code"
- "Get a code quality score"
Installation
pip install pylint
Examples
# Lint a file
pylint mymodule.py
# Lint a package
pylint mypackage/
# JSON output
pylint --output-format json mymodule.py
# With config
pylint --rcfile .pylintrc mymodule.py
# Disable specific checks
pylint --disable=C0111 mymodule.py