Add Docstring documentation to classes and public functions.
def check_password(self, value):
"""Verify password against stored hashed password.
:param str value: The password to verify.
:return: True if the password matches the stored hashed password.
:rtype: bool
"""
return bcrypt.check_password_hash(self.password, value)
My environment is not configured properly right now but you should expect similar output from pylint:
pylint -j 1 --load-plugins=pylint.extensions.bad_builtin,pylint.extensions.docparams,pylint.extensions.docstyle,pylint.extensions.mccabe --include-naming-hint=y app/auth/models.py
************* Module app.auth.models
app/auth/models.py:36:0: C0304: Final newline missing (missing-final-newline)
app/auth/models.py:1:0: C0111: Missing module docstring (missing-docstring)
app/auth/models.py:5:0: E0401: Unable to import 'flask_login' (import-error)
app/auth/models.py:8:0: C0111: Missing class docstring (missing-docstring)
app/auth/models.py:29:4: C0111: Missing method docstring (missing-docstring)
app/auth/models.py:32:4: C0111: Missing method docstring (missing-docstring)
------------------------------------------------------------------
Your code has been rated at 5.24/10 (previous run: 5.71/10, -0.48)