File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,6 +216,20 @@ Standard Checkers
216216**Default: ** ``False ``
217217
218218
219+ --use-local-configs
220+ """""""""""""""""""
221+ *When some of the linted files or modules have pylint config in the same directory, use their local configs for checking these files. *
222+
223+ **Default: ** ``False ``
224+
225+
226+ --use-parent-configs
227+ """"""""""""""""""""
228+ *Search for local pylint configs up until current working directory or root. *
229+
230+ **Default: ** ``False ``
231+
232+
219233
220234.. raw :: html
221235
@@ -285,6 +299,10 @@ Standard Checkers
285299
286300 unsafe-load-any-extension = false
287301
302+ use-local-configs = false
303+
304+ use-parent-configs = false
305+
288306
289307
290308 .. raw :: html
Original file line number Diff line number Diff line change 1+ Add 2 new command line options: use-local-configs and use-parent-configs.
2+
3+ use-local-configs enables searching for local pylint configurations in the same directory where linted file is located.
4+ For example:
5+ if there exists package/pylintrc, then
6+ pylint --use-local-configs=y package/file.py
7+ will use package/pylintrc instead of default config from $PWD.
8+
9+ use-parent-configs enables searching for local pylint configurations upwards from the directory where linted file is located.
10+ For example:
11+ if there exists package/pylintrc, and doesn't exist package/subpackage/pylintrc, then
12+ pylint --use-local-configs=y --use-parent-configs=y package/subpackage/file.py
13+ will use package/pylintrc instead of default config from $PWD.
14+
15+ Closes #618
You can’t perform that action at this time.
0 commit comments