Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e6e443c7
Commit
e6e443c7
authored
Jan 21, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6674 from edx/disable-pylint-name-errors-on-settings
Ignore invalid-name errors for settings files
parents
a72e129d
ef43840a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
50 additions
and
0 deletions
+50
-0
cms/envs/aws.py
+5
-0
cms/envs/bok_choy.py
+5
-0
cms/envs/common.py
+5
-0
cms/envs/test.py
+5
-0
lms/envs/aws.py
+5
-0
lms/envs/bok_choy.py
+5
-0
lms/envs/cms/microsite_test.py
+5
-0
lms/envs/common.py
+5
-0
lms/envs/dev.py
+5
-0
lms/envs/test.py
+5
-0
No files found.
cms/envs/aws.py
View file @
e6e443c7
...
...
@@ -6,6 +6,11 @@ This is the default template for our main set of AWS servers.
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
import
json
from
.common
import
*
...
...
cms/envs/bok_choy.py
View file @
e6e443c7
...
...
@@ -5,6 +5,11 @@ Settings for bok choy tests
import
os
from
path
import
path
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
########################## Prod-like settings ###################################
# These should be as close as possible to the settings we use in production.
...
...
cms/envs/common.py
View file @
e6e443c7
...
...
@@ -24,6 +24,11 @@ Longer TODO:
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
import
imp
import
os
import
sys
...
...
cms/envs/test.py
View file @
e6e443c7
...
...
@@ -12,6 +12,11 @@ sessions. Assumes structure:
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
from
.common
import
*
import
os
from
path
import
path
...
...
lms/envs/aws.py
View file @
e6e443c7
...
...
@@ -11,6 +11,11 @@ Common traits:
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
import
json
from
.common
import
*
...
...
lms/envs/bok_choy.py
View file @
e6e443c7
...
...
@@ -6,6 +6,11 @@ import os
from
path
import
path
from
tempfile
import
mkdtemp
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
CONFIG_ROOT
=
path
(
__file__
)
.
abspath
()
.
dirname
()
# pylint: disable=no-value-for-parameter
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
...
...
lms/envs/cms/microsite_test.py
View file @
e6e443c7
...
...
@@ -5,6 +5,11 @@ This is a localdev test for the Microsite processing pipeline
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
from
.dev
import
*
from
..dev
import
ENV_ROOT
,
FEATURES
...
...
lms/envs/common.py
View file @
e6e443c7
...
...
@@ -24,6 +24,11 @@ Longer TODO:
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-import, unused-wildcard-import, invalid-name
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
import
sys
import
os
import
imp
...
...
lms/envs/dev.py
View file @
e6e443c7
...
...
@@ -12,6 +12,11 @@ sessions. Assumes structure:
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
from
.common
import
*
from
logsettings
import
get_logger_config
...
...
lms/envs/test.py
View file @
e6e443c7
...
...
@@ -12,6 +12,11 @@ sessions. Assumes structure:
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# and throws spurious errors. Therefore, we disable invalid-name checking.
# pylint: disable=invalid-name
from
.common
import
*
import
os
from
path
import
path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment