From db3adcaccf2879f17a76fd20a79f6e159867ca93 Mon Sep 17 00:00:00 2001 From: Luca Sbardella Date: Tue, 6 Nov 2018 12:33:17 +0000 Subject: [PATCH] flake8 --- .circleci/config.yml | 15 ++++++++++++++- agiletoolkit/utils.py | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 94e3cfc..ed6134d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,19 @@ version: 2 jobs: - tests: + tests36: docker: - image: circleci/python:3.6 + steps: + - checkout + - run: + name: install + command: sudo python setup.py install && sudo ./dev/install-dev.sh + - run: + name: test + command: pytest + tests: + docker: + - image: circleci/python:3.7 steps: - checkout - run: @@ -49,9 +60,11 @@ workflows: version: 2 build-deploy: jobs: + - tests36 - tests - deploy-release: requires: + - tests36 - tests filters: branches: diff --git a/agiletoolkit/utils.py b/agiletoolkit/utils.py index d2d64aa..c20eb56 100644 --- a/agiletoolkit/utils.py +++ b/agiletoolkit/utils.py @@ -82,7 +82,7 @@ def shi(command, cwd=None, echo=None, env=None): def command(): try: yield - except CommandError as exc: + except CommandError: raise