Add PyLint as a development dependency

Use `pylint calsocial` to run the static analysis.
This commit is contained in:
2018-07-03 08:33:49 +02:00
parent 5283599da2
commit 531faa1ce7
7 changed files with 464 additions and 9 deletions

View File

@@ -74,6 +74,7 @@ class User(db.Model, UserMixin):
"""
__tablename__ = 'users'
# pylint: disable=invalid-name
id = db.Column(db.Integer(), primary_key=True)
#: The username of the user. This is also the display name and thus is immutable
@@ -132,11 +133,12 @@ class User(db.Model, UserMixin):
return f'<User {self.id}({self.username})>'
class Role(db.Model, RoleMixin):
class Role(db.Model, RoleMixin): # pylint: disable=too-few-public-methods
"""Database model for roles
"""
__tablename__ = 'roles'
# pylint: disable=invalid-name
id = db.Column(db.Integer(), primary_key=True)
#: The name of the role
@@ -175,6 +177,7 @@ class Event(db.Model):
"""
__tablename__ = 'events'
# pylint: disable=invalid-name
id = db.Column(db.Integer(), primary_key=True)
#: The ID of the user who created the event