mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 19:15:23 +02:00
pylint: add package and module examples (#12858)
This commit is contained in:
parent
e1b74f06f7
commit
8bb50be794
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@
|
||||||
|
|
||||||
`pylint {{path/to/file.py}}`
|
`pylint {{path/to/file.py}}`
|
||||||
|
|
||||||
|
- Lint a package or module (must be importable; no `.py` suffix):
|
||||||
|
|
||||||
|
`pylint {{package_or_module}}`
|
||||||
|
|
||||||
|
- Lint a package from a directory path (must contain an `__init__.py` file):
|
||||||
|
|
||||||
|
`pylint {{path/to/directory}}`
|
||||||
|
|
||||||
- Lint a file and use a configuration file (usually named `pylintrc`):
|
- Lint a file and use a configuration file (usually named `pylintrc`):
|
||||||
|
|
||||||
`pylint --rcfile {{path/to/pylintrc}} {{path/to/file.py}}`
|
`pylint --rcfile {{path/to/pylintrc}} {{path/to/file.py}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue