Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
c870ec38
Commit
c870ec38
authored
6 years ago
by
Joseph Mulloy
Browse files
Options
Downloads
Patches
Plain Diff
Fix pylint warnings OPS-3450
parent
688968e8
Loading
Loading
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cms/envs/aws.py
+7
-6
7 additions, 6 deletions
cms/envs/aws.py
cms/envs/production.py
+7
-6
7 additions, 6 deletions
cms/envs/production.py
lms/envs/aws.py
+8
-7
8 additions, 7 deletions
lms/envs/aws.py
lms/envs/production.py
+7
-6
7 additions, 6 deletions
lms/envs/production.py
with
29 additions
and
25 deletions
cms/envs/aws.py
+
7
−
6
View file @
c870ec38
...
...
@@ -7,11 +7,6 @@ This is the default template for our main set of AWS servers.
# pylint: disable=wildcard-import, unused-wildcard-import
import
json
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
from
openedx.core.lib.logsettings
import
get_logger_config
import
os
import
logging
import
logging.config
...
...
@@ -19,6 +14,11 @@ import logging.config
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
# pylint: disable=wrong-import-order
from
openedx.core.lib.logsettings
import
get_logger_config
# pylint: disable=wrong-import-order
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
SERVICE_VARIANT
=
os
.
environ
.
get
(
'
SERVICE_VARIANT
'
,
None
)
...
...
@@ -601,7 +601,8 @@ COURSE_ENROLLMENT_MODES = ENV_TOKENS.get('COURSE_ENROLLMENT_MODES', COURSE_ENROL
####################### Plugin Settings ##########################
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# This is at the bottom because it is going to load more settings after base settings are loaded
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# pylint: disable=wrong-import-order, wrong-import-position
plugin_settings
.
add_plugins
(
__name__
,
plugin_constants
.
ProjectType
.
CMS
,
plugin_constants
.
SettingsType
.
AWS
)
########################## Derive Any Derived Settings #######################
...
...
This diff is collapsed.
Click to expand it.
cms/envs/production.py
+
7
−
6
View file @
c870ec38
...
...
@@ -7,16 +7,16 @@ This is the default template for our main set of AWS servers.
# pylint: disable=wildcard-import, unused-wildcard-import
import
json
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
from
openedx.core.lib.logsettings
import
get_logger_config
import
os
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
# pylint: disable=wrong-import-order
from
openedx.core.lib.logsettings
import
get_logger_config
# pylint: disable=wrong-import-order
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
SERVICE_VARIANT
=
os
.
environ
.
get
(
'
SERVICE_VARIANT
'
,
None
)
...
...
@@ -599,7 +599,8 @@ COURSE_ENROLLMENT_MODES = ENV_TOKENS.get('COURSE_ENROLLMENT_MODES', COURSE_ENROL
####################### Plugin Settings ##########################
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# This is at the bottom because it is going to load more settings after base settings are loaded
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# pylint: disable=wrong-import-order, wrong-import-position
plugin_settings
.
add_plugins
(
__name__
,
plugin_constants
.
ProjectType
.
CMS
,
plugin_constants
.
SettingsType
.
AWS
)
########################## Derive Any Derived Settings #######################
...
...
This diff is collapsed.
Click to expand it.
lms/envs/aws.py
+
8
−
7
View file @
c870ec38
...
...
@@ -19,19 +19,19 @@ Common traits:
import
datetime
import
json
import
dateutil
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
from
openedx.core.lib.logsettings
import
get_logger_config
import
os
import
logging
import
logging.config
import
dateutil
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
# pylint: disable=wrong-import-order
from
openedx.core.lib.logsettings
import
get_logger_config
# pylint: disable=wrong-import-order
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
SERVICE_VARIANT
=
os
.
environ
.
get
(
'
SERVICE_VARIANT
'
,
None
)
...
...
@@ -1100,7 +1100,8 @@ COURSE_ENROLLMENT_MODES = ENV_TOKENS.get('COURSE_ENROLLMENT_MODES', COURSE_ENROL
############################### Plugin Settings ###############################
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# This is at the bottom because it is going to load more settings after base settings are loaded
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# pylint: disable=wrong-import-order, wrong-import-position
plugin_settings
.
add_plugins
(
__name__
,
plugin_constants
.
ProjectType
.
LMS
,
plugin_constants
.
SettingsType
.
AWS
)
########################## Derive Any Derived Settings #######################
...
...
This diff is collapsed.
Click to expand it.
lms/envs/production.py
+
7
−
6
View file @
c870ec38
...
...
@@ -20,16 +20,16 @@ Common traits:
import
datetime
import
json
import
dateutil
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
from
openedx.core.lib.logsettings
import
get_logger_config
import
os
import
dateutil
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
.common
import
*
from
openedx.core.lib.derived
import
derive_settings
# pylint: disable=wrong-import-order
from
openedx.core.lib.logsettings
import
get_logger_config
# pylint: disable=wrong-import-order
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
SERVICE_VARIANT
=
os
.
environ
.
get
(
'
SERVICE_VARIANT
'
,
None
)
...
...
@@ -1098,7 +1098,8 @@ COURSE_ENROLLMENT_MODES = ENV_TOKENS.get('COURSE_ENROLLMENT_MODES', COURSE_ENROL
############################### Plugin Settings ###############################
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# This is at the bottom because it is going to load more settings after base settings are loaded
from
openedx.core.djangoapps.plugins
import
plugin_settings
,
constants
as
plugin_constants
# pylint: disable=wrong-import-order, wrong-import-position
plugin_settings
.
add_plugins
(
__name__
,
plugin_constants
.
ProjectType
.
LMS
,
plugin_constants
.
SettingsType
.
AWS
)
########################## Derive Any Derived Settings #######################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment