pep8: Add compliance with rule E261 to prod_settings_template.py.

This commit is contained in:
Aditya Bansal 2017-07-09 05:24:38 +05:30 committed by Tim Abbott
parent 5f87a0f8f8
commit b9bffaa446
2 changed files with 8 additions and 9 deletions

View File

@ -92,7 +92,6 @@ def check_pep8(files):
'zerver/tornado/websocket_client.py',
'zerver/worker/queue_processors.py',
'zilencer/management/commands/populate_db.py',
'zproject/prod_settings_template.py',
]
filtered_files = [fn for fn in files if fn not in IGNORE_FILES_PEPE261]

View File

@ -92,11 +92,11 @@ NOREPLY_EMAIL_ADDRESS = "noreply@" + EXTERNAL_HOST.split(":")[0]
# See http://zulip.readthedocs.io/en/latest/prod-authentication-methods.html
# for documentation on our authentication backends.
AUTHENTICATION_BACKENDS = (
'zproject.backends.EmailAuthBackend', # Email and password; just requires SMTP setup
# 'zproject.backends.GoogleMobileOauth2Backend', # Google Apps, setup below
# 'zproject.backends.GitHubAuthBackend', # GitHub auth, setup below
# 'zproject.backends.ZulipLDAPAuthBackend', # LDAP, setup below
# 'zproject.backends.ZulipRemoteUserBackend', # Local SSO, setup docs on readthedocs
'zproject.backends.EmailAuthBackend', # Email and password; just requires SMTP setup
# 'zproject.backends.GoogleMobileOauth2Backend', # Google Apps, setup below
# 'zproject.backends.GitHubAuthBackend', # GitHub auth, setup below
# 'zproject.backends.ZulipLDAPAuthBackend', # LDAP, setup below
# 'zproject.backends.ZulipRemoteUserBackend', # Local SSO, setup docs on readthedocs
)
# To enable Google authentication, you need to do the following:
@ -138,7 +138,7 @@ AUTHENTICATION_BACKENDS = (
# set this to your domain (e.g. if REMOTE_USER is "username" and the
# corresponding email address is "username@example.com", set
# SSO_APPEND_DOMAIN = "example.com")
SSO_APPEND_DOMAIN = None # type: Optional[str]
SSO_APPEND_DOMAIN = None # type: Optional[str]
# Support for mobile push notifications. Setting controls whether
@ -152,7 +152,7 @@ SSO_APPEND_DOMAIN = None # type: Optional[str]
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
# Session cookie expiry in seconds after the last page load
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # 2 weeks
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # 2 weeks
# Password strength requirements; learn about configuration at
# http://zulip.readthedocs.io/en/latest/security-model.html.
@ -363,7 +363,7 @@ AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=users,dc=example,dc=com",
# If the value of a user's "uid" (or similar) property is not their email
# address, specify the domain to append here.
LDAP_APPEND_DOMAIN = None # type: Optional[str]
LDAP_APPEND_DOMAIN = None # type: Optional[str]
# This map defines how to populate attributes of a Zulip user from LDAP.
AUTH_LDAP_USER_ATTR_MAP = {