From a05a04cbd833402592d1aa6d305f474cb3b5be4f Mon Sep 17 00:00:00 2001 From: Sylvain Hellegouarch Date: Tue, 12 May 2020 08:56:58 +0200 Subject: [PATCH] delint Signed-off-by: Sylvain Hellegouarch --- chaosaws/asg/actions.py | 6 +++--- chaosaws/ecs/actions.py | 2 +- setup.cfg | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/chaosaws/asg/actions.py b/chaosaws/asg/actions.py index ba54ff1..5fe275c 100644 --- a/chaosaws/asg/actions.py +++ b/chaosaws/asg/actions.py @@ -338,9 +338,9 @@ def detach_random_instances(asg_names: List[str] = None, len(instances) * float(instance_percent)) / 100) if instance_count > len(instances): - raise FailedActivity('You are attempting to detach more instances ' - 'than exist on asg %s' % ( - a['AutoScalingGroupName'])) + raise FailedActivity( + 'You are attempting to detach more instances ' + 'than exist on asg %s' % (a['AutoScalingGroupName'])) instances = random.sample(instances, instance_count) diff --git a/chaosaws/ecs/actions.py b/chaosaws/ecs/actions.py index 4de007a..38336de 100644 --- a/chaosaws/ecs/actions.py +++ b/chaosaws/ecs/actions.py @@ -92,7 +92,7 @@ def stop_task(cluster: str = None, task_id: str = None, service: str = None, tasks = list_tasks(cluster=cluster, client=client, service=service) if not tasks: raise FailedActivity( - "No ECS tasks found for service: {}".format(service)) + "No ECS tasks found for service: {}".format(service)) task_id = random.choice(tasks) task_id = task_id.rsplit("/", 1)[1] diff --git a/setup.cfg b/setup.cfg index 46348fe..719b639 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,4 +3,7 @@ release = sdist bdist_wheel test = pytest [wheel] -universal = 0 \ No newline at end of file +universal = 0 + +[pycodestyle] +ignore = E741