-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for new options providing per-directory configuration
- Loading branch information
Aleksey Petryankin
committed
Feb 2, 2024
1 parent
592f107
commit 98e525f
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Add 2 new command line options: use-local-configs and use-parent-configs. | ||
|
||
use-local-configs enables searching for local pylint configurations in the same directory where linted file is located. | ||
For example: | ||
if there exists package/pylintrc, then | ||
pylint --use-local-configs=y package/file.py | ||
will use package/pylintrc instead of default config from $PWD. | ||
|
||
use-parent-configs enables searching for local pylint configurations upwards from the directory where linted file is located. | ||
For example: | ||
if there exists package/pylintrc, and doesn't exist package/subpackage/pylintrc, then | ||
pylint --use-local-configs=y --use-parent-configs=y package/subpackage/file.py | ||
will use package/pylintrc instead of default config from $PWD. | ||
|
||
Closes #618 |