Commit e6e443c7 by David Baumgold

Merge pull request #6674 from edx/disable-pylint-name-errors-on-settings

Ignore invalid-name errors for settings files
parents a72e129d ef43840a
...@@ -6,6 +6,11 @@ This is the default template for our main set of AWS servers. ...@@ -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 # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # 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 import json
from .common import * from .common import *
......
...@@ -5,6 +5,11 @@ Settings for bok choy tests ...@@ -5,6 +5,11 @@ Settings for bok choy tests
import os import os
from path import path 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 ################################### ########################## Prod-like settings ###################################
# These should be as close as possible to the settings we use in production. # These should be as close as possible to the settings we use in production.
......
...@@ -24,6 +24,11 @@ Longer TODO: ...@@ -24,6 +24,11 @@ Longer TODO:
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-import, unused-wildcard-import # 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 imp
import os import os
import sys import sys
......
...@@ -12,6 +12,11 @@ sessions. Assumes structure: ...@@ -12,6 +12,11 @@ sessions. Assumes structure:
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # 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 .common import *
import os import os
from path import path from path import path
......
...@@ -11,6 +11,11 @@ Common traits: ...@@ -11,6 +11,11 @@ Common traits:
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # 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 import json
from .common import * from .common import *
......
...@@ -6,6 +6,11 @@ import os ...@@ -6,6 +6,11 @@ import os
from path import path from path import path
from tempfile import mkdtemp 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 CONFIG_ROOT = path(__file__).abspath().dirname() # pylint: disable=no-value-for-parameter
TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root" TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root"
......
...@@ -5,6 +5,11 @@ This is a localdev test for the Microsite processing pipeline ...@@ -5,6 +5,11 @@ This is a localdev test for the Microsite processing pipeline
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # 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 *
from ..dev import ENV_ROOT, FEATURES from ..dev import ENV_ROOT, FEATURES
......
...@@ -24,6 +24,11 @@ Longer TODO: ...@@ -24,6 +24,11 @@ Longer TODO:
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-import, unused-wildcard-import, invalid-name # 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 sys
import os import os
import imp import imp
......
...@@ -12,6 +12,11 @@ sessions. Assumes structure: ...@@ -12,6 +12,11 @@ sessions. Assumes structure:
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # 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 .common import *
from logsettings import get_logger_config from logsettings import get_logger_config
......
...@@ -12,6 +12,11 @@ sessions. Assumes structure: ...@@ -12,6 +12,11 @@ sessions. Assumes structure:
# want to import all variables from base settings files # want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import # 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 .common import *
import os import os
from path import path from path import path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment