From 6477580c6fd02a06940b478f50db0bc7cfeb4120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Dec 2014 12:56:16 +0100 Subject: [PATCH] Fix most flake8 errors review8771002 --- __init__.py | 4 ++-- purchase.py | 4 ++-- setup.py | 4 ++-- tests/__init__.py | 4 ++-- tests/test_stock_supply_day.py | 18 +++++++++--------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/__init__.py b/__init__.py index 3e352e503d..40c47bd873 100644 --- a/__init__.py +++ b/__init__.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from trytond.pool import Pool from .purchase import * diff --git a/purchase.py b/purchase.py index 8db0725026..92c128dfef 100644 --- a/purchase.py +++ b/purchase.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. import datetime from trytond.model import ModelView, ModelSQL, fields from trytond.pool import PoolMeta diff --git a/setup.py b/setup.py index 1d09db90c1..7f8061b9c9 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from setuptools import setup import re diff --git a/tests/__init__.py b/tests/__init__.py index 7306c1ef8a..52a2a88cbf 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from .test_stock_supply_day import suite diff --git a/tests/test_stock_supply_day.py b/tests/test_stock_supply_day.py index 331ede7929..05fb304ffb 100644 --- a/tests/test_stock_supply_day.py +++ b/tests/test_stock_supply_day.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. import unittest import doctest import datetime @@ -50,10 +50,10 @@ class StockSupplyDayTestCase(unittest.TestCase): (datetime.date(2011, 11, 21), 10, None, datetime.date(2011, 12, 1)), ] - # Purchase date is Monday, 2011-11-21, the regular days to deliver - # is 10 days, which would be Wednesday 2011-12-01. But with the - # supplier weekday 0 (Monday) the forecast supply date is next - # Monday, the 2011-12-05. + # Purchase date is Monday, 2011-11-21, the regular days to deliver is + # 10 days, which would be Wednesday 2011-12-01. But with the supplier + # weekday 0 (Monday) the forecast supply date is next Monday, the + # 2011-12-05. for purchase_date, delivery_time, weekday, supply_date in dates: with Transaction().start(DB_NAME, USER, context=CONTEXT): product_supplier = self.create_product_supplier_day( @@ -74,9 +74,9 @@ class StockSupplyDayTestCase(unittest.TestCase): (datetime.date(2011, 11, 30), 4, 6, datetime.date(2011, 12, 6)), (datetime.date(2011, 12, 27), 6, 0, datetime.date(2012, 1, 3)), ] - # Supply date max is Tuesday, 2012-01-03, the supplier weekday 0 - # which would be Monday 2012-01-02. But with the 6 days of delivery - # the forecast purchase date is the 2011-12-27. + # Supply date max is Tuesday, 2012-01-03, the supplier weekday 0 which + # would be Monday 2012-01-02. But with the 6 days of delivery the + # forecast purchase date is the 2011-12-27. for purchase_date, delivery_time, weekday, supply_date in dates: with Transaction().start(DB_NAME, USER, context=CONTEXT): product_supplier = self.create_product_supplier_day(