Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-01-22 20:27:15 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2018-01-22 20:35:21 +0300
commitc7933435cc2da9e6ac9cc6f10cc0ca7ed48949ed (patch)
tree85722d9a47107a65c69f8424330166045835c222
parent2195b7aaff01701f258792b9ffe6eafbc3734217 (diff)
Run flake8, as well
-rw-r--r--.travis.yml2
-rwxr-xr-xpep82
-rw-r--r--test/__init__.py2
3 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index e54b58a..3acab0f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,7 @@ sudo: false
python:
- "3.4"
- "3.6"
-install: "pip install pycodestyle dirq"
+install: "pip install pycodestyle flake8 dirq"
script:
- ./pep8
- python -m unittest discover
diff --git a/pep8 b/pep8
index d501e84..db9c9c7 100755
--- a/pep8
+++ b/pep8
@@ -1,2 +1,4 @@
#!/bin/sh
+set -e
grep -s -l '^#!/usr/bin/env python' * calm/* test/* | xargs python3 -m pycodestyle --count --show-source --max-line-length=240 --ignore=E129,E741
+flake8 --ignore E129,E501,E741,F841
diff --git a/test/__init__.py b/test/__init__.py
index 9ce127e..784e7c9 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -1 +1 @@
-from . import test_calm
+__all__ = ['test_calm']