Merge pull request #1520 from edx/db/accept-db-var
pylint: db is a valid variable name
This commit is contained in:
@@ -27,8 +27,6 @@ class LocMapperStore(object):
|
||||
or dominant store, but that's not a requirement. This store creates its own connection.
|
||||
'''
|
||||
|
||||
# C0103: varnames and attrs must be >= 3 chars, but db defined by long time usage
|
||||
# pylint: disable = C0103
|
||||
def __init__(
|
||||
self, host, db, collection, port=27017, user=None, password=None,
|
||||
**kwargs
|
||||
|
||||
2
pylintrc
2
pylintrc
@@ -166,7 +166,7 @@ variable-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
||||
|
||||
# Good variable names which should always be accepted, separated by a comma
|
||||
good-names=f,i,j,k,ex,Run,_,__
|
||||
good-names=f,i,j,k,db,ex,Run,_,__
|
||||
|
||||
# Bad variable names which should always be refused, separated by a comma
|
||||
bad-names=foo,bar,baz,toto,tutu,tata
|
||||
|
||||
Reference in New Issue
Block a user