Skip to content

Commit 6ee7e35

Browse files
add regex to attribute and argument name checks
1 parent cb8cb28 commit 6ee7e35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ argument-naming-style=snake_case
168168
# Regular expression matching correct argument names. Overrides argument-
169169
# naming-style. If left empty, argument names will be checked with the set
170170
# naming style.
171-
#argument-rgx=
171+
argument-rgx=^[a-z][a-z0-9]*((_[a-z0-9]+)*)?$
172172

173173
# Naming style matching correct attribute names.
174174
attr-naming-style=snake_case
@@ -196,7 +196,7 @@ class-attribute-naming-style=any
196196
# Regular expression matching correct class attribute names. Overrides class-
197197
# attribute-naming-style. If left empty, class attribute names will be checked
198198
# with the set naming style.
199-
#class-attribute-rgx=
199+
class-attribute-rgx=^[a-z][a-z0-9]*((_[a-z0-9]+)*)?$
200200

201201
# Naming style matching correct class constant names.
202202
class-const-naming-style=UPPER_CASE

0 commit comments

Comments
 (0)