mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 19:30:28 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user