From 7be34b7f1c50efe9ee4f8caa2391a9cf8e1ff66b Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 22 Aug 2017 17:50:15 +0200 Subject: [PATCH 1/3] Add hacking to get flake8 plus plugins --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 7e2fba5e..4e8c8b6d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ +hacking Pillow From e51c262308496e1ab1b1c5c5adfeef6e2dc39063 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 22 Aug 2017 17:51:58 +0200 Subject: [PATCH 2/3] Add flake8 to the testing --- circle.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/circle.yml b/circle.yml index 2110527b..47c5b3cc 100644 --- a/circle.yml +++ b/circle.yml @@ -8,5 +8,7 @@ general: - old_master test: override: + - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics + - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - python -m unittest discover test_replays - python -m unittest discover test_s2gs From f5823861c694f47c1785140cf6074cbc1ac50845 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 22 Aug 2017 18:04:39 +0200 Subject: [PATCH 3/3] Add Python 2.7 and 3.6 to the testing and flake8 as well --- circle.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index 47c5b3cc..1a9b7f8a 100644 --- a/circle.yml +++ b/circle.yml @@ -1,3 +1,6 @@ +machine: + post: + - pyenv global 2.7.13 3.6.2 general: branches: ignore: @@ -7,8 +10,12 @@ general: - master - old_master test: - override: - - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics - - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - python -m unittest discover test_replays - - python -m unittest discover test_s2gs + override: + - python2.7 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics + - python2.7 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - python2.7 -m python -m unittest discover test_replays + - python2.7 -m python -m unittest discover test_s2gs + - python3.6 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics + - python3.6 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - python3.6 -m python -m unittest discover test_replays + - python3.6 -m python -m unittest discover test_s2gs