From 811299d1c4e661678e55488e24d03bd3455b978d Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 10 Jun 2018 14:37:43 +0200 Subject: [PATCH 1/3] flake8 combines both pep8 and pyflakes [flake8](http://flake8.pycqa.org) is a superset of pep8 (pycodestyle) and pyflakes. It also adds some useful tests of its own. Testing tools like coverage, flake8, pep8, and pyflakes should not be in __requirements.txt__ because they are _optional_ for end users. --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1e8793e..892ec03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,11 @@ language: python python: -- '2.6' - '2.7' install: - pip install -r requirements.txt +- pip install coverage flake8 script: -- pep8 elections -- pyflakes elections +- flake8 . - export TEST_STATE='CA' - coverage run tests.py after_success: From 385f5acdf719a7b55966e8cae75a471a8235b414 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 10 Jun 2018 14:48:04 +0200 Subject: [PATCH 2/3] flake8 --max-line-length=82 elections --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 892ec03..40ad491 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ install: - pip install -r requirements.txt - pip install coverage flake8 script: -- flake8 . +- flake8 --max-line-length=82 elections - export TEST_STATE='CA' - coverage run tests.py after_success: From 8ae2e366259147b338d53db58bcdc06ac937b205 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 10 Jun 2018 14:51:09 +0200 Subject: [PATCH 3/3] Remove testing tools from requirements.txt Testing tools like coverage, flake8, pep8, and pyflakes should not be in __requirements.txt__ because they are _optional_ for end users. --- requirements.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index ac93f0e..e57ca9c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,13 +4,9 @@ PyYAML==3.11 Pygments==1.4 Sphinx==1.1.2 argparse -coverage==3.7.1 docutils==0.8.1 latimes-calculate==0.1.8 -python-coveralls==2.4.2 python-dateutil==1.5 -requests==2.2.1 +requests==2.18.4 sh==1.09 -six==1.6.1 -pep8 -pyflakes +six==1.11.0