.pylintrc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [TYPECHECK]
  2. # add,bind,close,commit,delete,flush,rollback are for SQLAlchemy's
  3. # scoped_session implementation, which uses __call__ to pass the call
  4. # to a backing instance. We always call instances of scoped_session
  5. # `session` or `SESSION`. Unfortunately due to
  6. # https://github.com/PyCQA/pylint/issues/1167 we cannot use regexes
  7. # like `(session|SESSION)\.add` here.
  8. # secure_filename is from werkzeug, which lazy loads functions from
  9. # submodules.
  10. # get_object,set_target,shorthand,target are for some kind of
  11. # shenanigans going on with flask and werkzeug proxying and pygit2.
  12. # We always call the object `head`, in this case, it seems.
  13. # GIT_REPOSITORY_INIT_SHARED_GROUP is for a constant we get from
  14. # pygit2; we could use:
  15. # pygit2.GIT_REPOSITORY_INIT_SHARED_GROUP
  16. # instead of:
  17. # pygit2.C.GIT_REPOSITORY_INIT_SHARED_GROUP
  18. # and avoid the pylint error, but per
  19. # https://github.com/libgit2/pygit2/issues/483
  20. # that only works since a commit in early 2015 which may be too new
  21. # to be safe.
  22. generated-members=pygit2\.C\.GIT_REPOSITORY_INIT_SHARED_GROUP,
  23. .*session\.add,
  24. .*SESSION\.add,
  25. .*session\.bind,
  26. .*SESSION\.bind,
  27. .*session\.close,
  28. .*SESSION\.close,
  29. .*session\.commit,
  30. .*SESSION\.commit,
  31. .*session\.delete,
  32. .*SESSION\.delete,
  33. .*session\.flush,
  34. .*SESSION\.flush,
  35. .*session\.rollback,
  36. .*SESSION\.rollback,
  37. .*head\.get_object,
  38. .*head\.set_target,
  39. .*head\.shorthand,
  40. .*head\.target,
  41. werkzeug\.secure_filename,