LinuxCommandLibrary

pylint

TLDR

Check Python file

$ pylint [file.py]
copy
Check with specific config
$ pylint --rcfile=[.pylintrc] [file.py]
copy
Disable specific warnings
$ pylint --disable=[C0114] [file.py]
copy
Generate config file
$ pylint --generate-rcfile > [.pylintrc]
copy
Output as JSON
$ pylint --output-format=json [file.py]
copy

SYNOPSIS

pylint [options] modules

DESCRIPTION

pylint analyzes Python code for errors and style. Comprehensive linter.
The tool checks code quality. Reports violations and suggestions.
pylint lints Python.

PARAMETERS

MODULES

Python modules to check.
--rcfile FILE
Configuration file.
--disable IDS
Disable checks.
--enable IDS
Enable checks.
--output-format FORMAT
Output format.
--generate-rcfile
Generate config.

CAVEATS

Can be slow on large codebases. Highly configurable.

HISTORY

Pylint was created as a comprehensive Python code analysis tool.

SEE ALSO

pyflakes(1), flake8(1), mypy(1), ruff(1)

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

$169.99
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50