Commit d8447436 by David Baumgold

Merge pull request #1520 from edx/db/accept-db-var

pylint: db is a valid variable name
parents da378aaf ff5baa7a
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment