diff --git a/cabot/cabotapp/tasks.py b/cabot/cabotapp/tasks.py index a13412627..f24bbd79b 100644 --- a/cabot/cabotapp/tasks.py +++ b/cabot/cabotapp/tasks.py @@ -100,9 +100,7 @@ def clean_db(days_to_retain=7, batch_size=10000): # If we reached the batch size on either we need to re-queue to continue cleaning up. if ( - result_count == batch_size or - service_snapshot_count == batch_size or - instance_snapshot_count == batch_size + result_count == batch_size or service_snapshot_count == batch_size or instance_snapshot_count == batch_size ): clean_db.apply_async(kwargs={ 'days_to_retain': days_to_retain, diff --git a/tox.ini b/tox.ini index 84997d458..d65853c37 100644 --- a/tox.ini +++ b/tox.ini @@ -47,7 +47,7 @@ commands = [flake8] exclude = .venv,venv,.tox,dist,doc,build,*.egg,docs,setup.py,*/migrations/ -ignore = E121,E123,E125,E126,E127,E128,E131,E222,E226,E231,E251,E261,E265,E302,E305,E402,E714,E722,F401,F403,F405,F841,W391 +ignore = E121,E123,E125,E126,E127,E128,E131,E222,E226,E231,E251,E261,E265,E302,E305,E402,E714,E722,F401,F403,F405,F841,W391,W605 max-line-length = 160 # E121 continuation line under-indented for hanging indent # E123 closing bracket does not match indentation of opening bracket's line @@ -72,3 +72,4 @@ max-line-length = 160 # F405 foo may be undefined, or defined from star imports # F841 local variable 'foo' is assigned to but never used # W391 blank line at end of file +# W605 invalid escape sequence