forked from gergely/calendar-social
PyLint happiness (again)
This commit is contained in:
parent
b9c037f914
commit
7cd2156cfc
@ -8,7 +8,7 @@ REGISTRATION_ENABLED = True
|
|||||||
DEFAULT_TIMEZONE = 'Europe/Budapest'
|
DEFAULT_TIMEZONE = 'Europe/Budapest'
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
TESTING=True
|
TESTING = True
|
||||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///'
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///'
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
SECRET_KEY = 'WeAreTesting'
|
SECRET_KEY = 'WeAreTesting'
|
||||||
|
@ -31,7 +31,7 @@ from wtforms.widgets import TextArea
|
|||||||
from calsocial.models import EventVisibility, EVENT_VISIBILITY_TRANSLATIONS
|
from calsocial.models import EventVisibility, EVENT_VISIBILITY_TRANSLATIONS
|
||||||
|
|
||||||
|
|
||||||
class UsernameAvailable(object): # pylint: disable=too-few-public-methods
|
class UsernameAvailable: # pylint: disable=too-few-public-methods
|
||||||
"""Checks if a username is available
|
"""Checks if a username is available
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ class UsernameAvailable(object): # pylint: disable=too-few-public-methods
|
|||||||
raise StopValidation(message)
|
raise StopValidation(message)
|
||||||
|
|
||||||
|
|
||||||
class EmailAvailable(object): # pylint: disable=too-few-public-methods
|
class EmailAvailable: # pylint: disable=too-few-public-methods
|
||||||
"""Checks if an email address is available
|
"""Checks if an email address is available
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -408,5 +408,6 @@ class ProfileForm(FlaskForm):
|
|||||||
})
|
})
|
||||||
FlaskForm.__init__(self, *args, **kwargs)
|
FlaskForm.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
self.builtin_avatar.choices = [(name, name) for name in current_app.config['BUILTIN_AVATARS']]
|
self.builtin_avatar.choices = [(name, name)
|
||||||
|
for name in current_app.config['BUILTIN_AVATARS']]
|
||||||
self.profile = profile
|
self.profile = profile
|
||||||
|
@ -101,7 +101,7 @@ class ResponseType(Enum):
|
|||||||
return self.name.lower() == other.lower() # pylint: disable=no-member
|
return self.name.lower() == other.lower() # pylint: disable=no-member
|
||||||
|
|
||||||
if isinstance(other, (int, float)):
|
if isinstance(other, (int, float)):
|
||||||
return self.value == other
|
return self.value == other # pylint: disable=comparison-with-callable
|
||||||
|
|
||||||
return Enum.__eq__(self, other)
|
return Enum.__eq__(self, other)
|
||||||
|
|
||||||
@ -792,7 +792,7 @@ class Response(db.Model): # pylint: disable=too-few-public-methods
|
|||||||
response = db.Column(db.Enum(ResponseType), nullable=False)
|
response = db.Column(db.Enum(ResponseType), nullable=False)
|
||||||
|
|
||||||
|
|
||||||
class AppState(app_state_base(db.Model)): # pylint: disable=too-few-public-methods
|
class AppState(app_state_base(db.Model)): # pylint: disable=too-few-public-methods,inherit-non-class
|
||||||
"""Database model for application state values
|
"""Database model for application state values
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user