1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:42:07 +02:00
tldr/pages/common/pylint.md
2021-11-07 17:45:39 -03:00

16 lines
397 B
Markdown

# 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}}`