Skip to content

Commit b72c6c8

Browse files
bjoernricksy0urself
authored andcommitted
Change: Update pylint to allow modules starting with underscore
Allo module names like `_foo` to mark these modules as "private" and not part of the public api.
1 parent e58565f commit b72c6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
259259
method-rgx=[a-z_][a-z0-9_]+$
260260

261261
# Regular expression which should only match correct module names
262-
module-rgx=([a-z]+)|(test_*)$
262+
module-rgx=([_a-z]+)|(test_*)$
263263

264264
# Regular expression which should only match function or class names that do
265265
# not require a docstring.

0 commit comments

Comments
 (0)