-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify use-parent-configs and use-local-configs
- Loading branch information
Aleksey Petryankin
committed
Feb 12, 2024
1 parent
26af069
commit f1b25d3
Showing
5 changed files
with
11 additions
and
38 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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
Add 2 new command line options: use-local-configs and use-parent-configs. | ||
Add new command line option: use-local-configs. | ||
|
||
use-local-configs enables searching for local pylint configurations in the same directory where linted file is located. | ||
use-local-configs enables searching for local pylint configurations in the same directory where linted file is located and upwards until $PWD or root. | ||
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 | ||
pylint --use-local-configs=y package/subpackage/file.py | ||
will use package/pylintrc instead of default config from $PWD. | ||
|
||
Closes #618 |
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
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