File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,20 @@ Standard Checkers
216
216
**Default: ** ``False ``
217
217
218
218
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
+
219
233
220
234
.. raw :: html
221
235
@@ -285,6 +299,10 @@ Standard Checkers
285
299
286
300
unsafe-load-any-extension = false
287
301
302
+ use-local-configs = false
303
+
304
+ use-parent-configs = false
305
+
288
306
289
307
290
308
.. 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