From 2debde31ba0a343fa1d1d9c511769f3fb434470b Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Fri, 30 May 2014 12:44:10 -0400 Subject: [PATCH] BLD/STY: Upgrade to latest versions of lint checkers. Upgrade pep8 1.4.6 -> 1.5.7 Upgrade pyflakes 0.7.3 -> 0.8.1 Also, tweak some line indentations which now show up as errors, because of the fixes/changes to visual indent detection between pep8 versions. --- etc/requirements_dev.txt | 4 ++-- tests/test_exception_handling.py | 6 +++--- tests/test_perf_tracking.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/etc/requirements_dev.txt b/etc/requirements_dev.txt index f371c56e..162f3be0 100644 --- a/etc/requirements_dev.txt +++ b/etc/requirements_dev.txt @@ -9,8 +9,8 @@ mock==1.0.1 flake8==2.1.0 mccabe==0.2.1 -pep8==1.4.6 -pyflakes==0.7.3 +pep8==1.5.7 +pyflakes==0.8.1 pip-tools==0.3.4 # Documentation Conversion diff --git a/tests/test_exception_handling.py b/tests/test_exception_handling.py index 0002fd8a..b8bd3d45 100644 --- a/tests/test_exception_handling.py +++ b/tests/test_exception_handling.py @@ -82,7 +82,7 @@ class ExceptionTestCase(TestCase): 'handle_data', self.zipline_test_config['sid'], sim_params=factory.create_simulation_parameters() - ) + ) zipline = simfactory.create_test_zipline( **self.zipline_test_config @@ -102,7 +102,7 @@ class ExceptionTestCase(TestCase): DivByZeroAlgorithm( self.zipline_test_config['sid'], sim_params=factory.create_simulation_parameters() - ) + ) zipline = simfactory.create_test_zipline( **self.zipline_test_config @@ -122,7 +122,7 @@ class ExceptionTestCase(TestCase): SetPortfolioAlgorithm( self.zipline_test_config['sid'], sim_params=factory.create_simulation_parameters() - ) + ) zipline = simfactory.create_test_zipline( **self.zipline_test_config diff --git a/tests/test_perf_tracking.py b/tests/test_perf_tracking.py index 3623bee9..70c1d210 100644 --- a/tests/test_perf_tracking.py +++ b/tests/test_perf_tracking.py @@ -704,8 +704,8 @@ class TestPositionPerformance(unittest.TestCase): trades[-1]['price'], "last sale should be same as last trade. \ expected {exp} actual {act}".format( - exp=trades[-1]['price'], - act=pp.positions[1].last_sale_price) + exp=trades[-1]['price'], + act=pp.positions[1].last_sale_price) ) self.assertEqual(