Skip to content

Commit

Permalink
Run flake8 on py2 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
said-moj committed Mar 25, 2020
1 parent a88d0b9 commit 9c24815
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,29 @@ jobs:
source env-ci/bin/activate
coverage run --source cla_common runtests.py
coveralls
python_lint:
python2_lint:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: Setup Python environment
command: |
pip install virtualenv
virtualenv py2-lint-env
- run:
name: Install dependencies
command: |
source py2-lint-env/bin/activate
pip install flake8==3.7.9
- run:
name: "PY2: Lint with flake8"
command: |
source py2-lint-env/bin/activate
flake8 cla_common
python3_lint:
docker:
- image: circleci/python:3.7
steps:
Expand All @@ -51,7 +73,7 @@ jobs:
paths:
- "~/.cache/pip"
- run:
name: Lint with flake8
name: "PY3: Lint with flake8"
command: |
source lint-env/bin/activate
flake8 cla_common
Expand Down

0 comments on commit 9c24815

Please sign in to comment.