pylint: add page (#7385)
This commit is contained in:
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}}`
|
Reference in New Issue
Block a user