Commit b8c16d5e by Sarina Canelake

s/pylint: disable=E1120/pylint: disable=no-value-for-parameter/

parent 19f1daca
...@@ -13,7 +13,7 @@ from path import path ...@@ -13,7 +13,7 @@ from path import path
# This is a convenience for ensuring (a) that we can consistently find the files # This is a convenience for ensuring (a) that we can consistently find the files
# and (b) that the files are the same in Jenkins as in local dev. # and (b) that the files are the same in Jenkins as in local dev.
os.environ['SERVICE_VARIANT'] = 'bok_choy' os.environ['SERVICE_VARIANT'] = 'bok_choy'
os.environ['CONFIG_ROOT'] = path(__file__).abspath().dirname() # pylint: disable=E1120 os.environ['CONFIG_ROOT'] = path(__file__).abspath().dirname() # pylint: disable=no-value-for-parameter
from .aws import * # pylint: disable=W0401, W0614 from .aws import * # pylint: disable=W0401, W0614
...@@ -23,7 +23,7 @@ from .aws import * # pylint: disable=W0401, W0614 ...@@ -23,7 +23,7 @@ from .aws import * # pylint: disable=W0401, W0614
INSTALLED_APPS += ('django_extensions',) INSTALLED_APPS += ('django_extensions',)
# Redirect to the test_root folder within the repo # Redirect to the test_root folder within the repo
TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root" # pylint: disable=E1120 TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root" # pylint: disable=no-value-for-parameter
GITHUB_REPO_ROOT = (TEST_ROOT / "data").abspath() GITHUB_REPO_ROOT = (TEST_ROOT / "data").abspath()
LOG_DIR = (TEST_ROOT / "log").abspath() LOG_DIR = (TEST_ROOT / "log").abspath()
...@@ -31,7 +31,7 @@ LOG_DIR = (TEST_ROOT / "log").abspath() ...@@ -31,7 +31,7 @@ LOG_DIR = (TEST_ROOT / "log").abspath()
update_module_store_settings( update_module_store_settings(
MODULESTORE, MODULESTORE,
module_store_options={ module_store_options={
'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=E1120 'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=no-value-for-parameter
}, },
xml_store_options={ xml_store_options={
'data_dir': (TEST_ROOT / "data").abspath(), 'data_dir': (TEST_ROOT / "data").abspath(),
......
...@@ -69,7 +69,7 @@ def load_data_str(rel_path): ...@@ -69,7 +69,7 @@ def load_data_str(rel_path):
Load a file from the "data" directory as a string. Load a file from the "data" directory as a string.
`rel_path` is the path relative to the data directory. `rel_path` is the path relative to the data directory.
""" """
full_path = path(__file__).abspath().dirname() / "data" / rel_path # pylint: disable=E1120 full_path = path(__file__).abspath().dirname() / "data" / rel_path # pylint: disable=no-value-for-parameter
with open(full_path) as data_file: with open(full_path) as data_file:
return data_file.read() return data_file.read()
......
""" """
Urls for sysadmin dashboard feature Urls for sysadmin dashboard feature
""" """
# pylint: disable=E1120 # pylint: disable=no-value-for-parameter
from django.conf.urls import patterns, url from django.conf.urls import patterns, url
......
...@@ -6,7 +6,7 @@ import os ...@@ -6,7 +6,7 @@ import os
from path import path from path import path
from tempfile import mkdtemp from tempfile import mkdtemp
CONFIG_ROOT = path(__file__).abspath().dirname() # pylint: disable=E1120 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"
########################## Prod-like settings ################################### ########################## Prod-like settings ###################################
...@@ -34,7 +34,7 @@ LOG_DIR = (TEST_ROOT / "log").abspath() ...@@ -34,7 +34,7 @@ LOG_DIR = (TEST_ROOT / "log").abspath()
update_module_store_settings( update_module_store_settings(
MODULESTORE, MODULESTORE,
module_store_options={ module_store_options={
'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=E1120 'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=no-value-for-parameter
}, },
xml_store_options={ xml_store_options={
'data_dir': (TEST_ROOT / "data").abspath(), 'data_dir': (TEST_ROOT / "data").abspath(),
......
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