Add PyLint as a development dependency
Use `pylint calsocial` to run the static analysis.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user