Skip to content

Commit

Permalink
Telling Pylint to allow slightly longer attribute names.
Browse files Browse the repository at this point in the history
In this case, it's not trivial to put a # pylint: disable=invalid-name
at the end of the line, because it's a multiline statement, and this
bug exists in Pylint: pylint-dev/pylint#199
  • Loading branch information
wettenhj committed Apr 20, 2016
1 parent 6807598 commit e22c993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|logger)$
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__)|logger)$

# Regular expression matching correct attribute names
attr-rgx=[a-z][A-Za-z0-9]{2,30}$
attr-rgx=[a-z][A-Za-z0-9]{2,33}$

# Naming hint for attribute names
attr-name-hint=[a-z][A-Za-z0-9]{2,30}$
attr-name-hint=[a-z][A-Za-z0-9]{2,33}$

# Regular expression matching correct argument names
argument-rgx=[a-z][A-Za-z0-9]{2,30}$
Expand Down

0 comments on commit e22c993

Please sign in to comment.