mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 07:15:32 +02:00
pylint: add page (#7385)
This commit is contained in:
parent
34bc4af530
commit
c10ebac537
1 changed files with 16 additions and 0 deletions
16
pages/common/pylint.md
Normal file
16
pages/common/pylint.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue