Upgrade yapf to 0.28
Upgrades yapf to newest version, 0.28.0, and runs the formatter to update all existing code. Change-Id: I7b2cb0dfd80dbe7bad37f6046c7465f7abe71d1e
This commit is contained in:
parent
9713df8fec
commit
3b794d05ff
@ -28,7 +28,6 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class ExcelParser(object):
|
class ExcelParser(object):
|
||||||
"""Parse data from excel into a dict"""
|
"""Parse data from excel into a dict"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, file_name: str, excel_specs: str, spec: str = 'xl_spec'):
|
self, file_name: str, excel_specs: str, spec: str = 'xl_spec'):
|
||||||
"""Initializes an ExcelParser to extract data from the Excel workbook
|
"""Initializes an ExcelParser to extract data from the Excel workbook
|
||||||
|
@ -6,7 +6,7 @@ pytest-cov==2.6.1
|
|||||||
# Formatting
|
# Formatting
|
||||||
flake8==3.7.8
|
flake8==3.7.8
|
||||||
flake8-import-order==0.18.1
|
flake8-import-order==0.18.1
|
||||||
yapf==0.27.0
|
yapf==0.28.0
|
||||||
|
|
||||||
# Linting
|
# Linting
|
||||||
hacking==1.1.0
|
hacking==1.1.0
|
||||||
|
@ -40,7 +40,6 @@ SITE_CONFIG_PATH = os.path.join(FIXTURE_DIR, 'site_config.yaml')
|
|||||||
@pytest.mark.usefixtures('site_data')
|
@pytest.mark.usefixtures('site_data')
|
||||||
class TestExcelPlugin(unittest.TestCase):
|
class TestExcelPlugin(unittest.TestCase):
|
||||||
"""Tests for ExcelPlugin"""
|
"""Tests for ExcelPlugin"""
|
||||||
|
|
||||||
def test___init__(self):
|
def test___init__(self):
|
||||||
region = 'test_region'
|
region = 'test_region'
|
||||||
result = ExcelPlugin(
|
result = ExcelPlugin(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user