Blame .pylintrc

Adam Williamson 4f8141
[TYPECHECK]
Adam Williamson 4f8141
Adam Williamson 4f8141
# add,bind,close,commit,delete,flush,rollback are for SQLAlchemy's
Adam Williamson 4f8141
# scoped_session implementation, which uses __call__ to pass the call
Adam Williamson 254a80
# to a backing instance. We always call instances of scoped_session
Adam Williamson 254a80
# `session` or `SESSION`. Unfortunately due to
Adam Williamson 254a80
# https://github.com/PyCQA/pylint/issues/1167 we cannot use regexes
Adam Williamson 254a80
# like `(session|SESSION)\.add` here.
Adam Williamson 4f8141
Adam Williamson 4f8141
# secure_filename is from werkzeug, which lazy loads functions from
Adam Williamson 254a80
# submodules.
Adam Williamson 4f8141
Adam Williamson 4f8141
# get_object,set_target,shorthand,target are for some kind of
Adam Williamson 254a80
# shenanigans going on with flask and werkzeug proxying and pygit2.
Adam Williamson 254a80
# We always call the object `head`, in this case, it seems.
Adam Williamson 4f8141
Adam Williamson 4f8141
# GIT_REPOSITORY_INIT_SHARED_GROUP is for a constant we get from
Adam Williamson 4f8141
# pygit2; we could use:
Adam Williamson 4f8141
# pygit2.GIT_REPOSITORY_INIT_SHARED_GROUP
Adam Williamson 4f8141
# instead of:
Adam Williamson 4f8141
# pygit2.C.GIT_REPOSITORY_INIT_SHARED_GROUP
Adam Williamson 4f8141
# and avoid the pylint error, but per
Adam Williamson 4f8141
# https://github.com/libgit2/pygit2/issues/483
Adam Williamson 4f8141
# that only works since a commit in early 2015 which may be too new
Adam Williamson 254a80
# to be safe.
Adam Williamson 254a80
Adam Williamson 254a80
generated-members=pygit2\.C\.GIT_REPOSITORY_INIT_SHARED_GROUP,
Adam Williamson 254a80
                  .*session\.add,
Adam Williamson 254a80
                  .*SESSION\.add,
Adam Williamson 254a80
                  .*session\.bind,
Adam Williamson 254a80
                  .*SESSION\.bind,
Adam Williamson 254a80
                  .*session\.close,
Adam Williamson 254a80
                  .*SESSION\.close,
Adam Williamson 254a80
                  .*session\.commit,
Adam Williamson 254a80
                  .*SESSION\.commit,
Adam Williamson 254a80
                  .*session\.delete,
Adam Williamson 254a80
                  .*SESSION\.delete,
Adam Williamson 254a80
                  .*session\.flush,
Adam Williamson 254a80
                  .*SESSION\.flush,
Adam Williamson 254a80
                  .*session\.rollback,
Adam Williamson 254a80
                  .*SESSION\.rollback,
Adam Williamson 254a80
                  .*head\.get_object,
Adam Williamson 254a80
                  .*head\.set_target,
Adam Williamson 254a80
                  .*head\.shorthand,
Adam Williamson 254a80
                  .*head\.target,
Adam Williamson 254a80
                  werkzeug\.secure_filename,