mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 20:47:03 +00:00
22 lines
490 B
Plaintext
22 lines
490 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pylint
|
|
|
|
> A Python code linter.
|
|
> More information: <https://pylint.pycqa.org/en/latest/>.
|
|
|
|
- Show lint errors in a file:
|
|
|
|
`pylint {{path/to/file.py}}`
|
|
|
|
- Lint a file and use a configuration file (usually named `pylintrc`):
|
|
|
|
`pylint --rcfile {{path/to/pylintrc}} {{path/to/file.py}}`
|
|
|
|
- Lint a file and disable a specific error code:
|
|
|
|
`pylint --disable {{C,W,no-error,design}} {{path/to/file}}`
|