Skip to content

Commit 19e4b84

Browse files
Run flake8 on diff with master branch
1 parent a34c427 commit 19e4b84

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.circleci/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ jobs:
5252
- checkout
5353
- run: pip install --user .
5454
- run: sudo pip install setuptools coverage pylint==1.9.3 pycodestyle flake8
55-
- run: flake8 --max-complexity=10 ./analytics
55+
- run:
56+
name: Linting with Flake8
57+
command: |
58+
git diff origin/master..HEAD analytics | flake8 --diff --max-complexity=10 analytics
5659
- run: make test
5760
- run: make e2e_test
5861

@@ -63,7 +66,10 @@ jobs:
6366
- checkout
6467
- run: pip install --user .
6568
- run: sudo pip install coverage pylint==1.9.3 pycodestyle flake8
66-
- run: flake8 --max-complexity=10 ./analytics
69+
- run:
70+
name: Linting with Flake8
71+
command: |
72+
git diff origin/master..HEAD analytics | flake8 --diff --max-complexity=10 analytics
6773
- run: make test
6874
- run: make e2e_test
6975

0 commit comments

Comments
 (0)