summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck13
-rw-r--r--setup.py4
-rw-r--r--without-tests1
3 files changed, 17 insertions, 1 deletions
diff --git a/check b/check
index f4c6167..0858d02 100755
--- a/check
+++ b/check
@@ -2,6 +2,19 @@
set -eu
+python -m CoverageTestRunner --ignore-missing-from=without-tests
+rm -f .coverage
+
+if command -v pep8 > /dev/null
+then
+ pep8 distixlib
+fi
+
+if command -v pylint > /dev/null
+then
+ pylint --rcfile=pylint.conf distixlib
+fi
+
yarn yarns/*.yarn \
--shell python2 \
--shell-arg '' \
diff --git a/setup.py b/setup.py
index cc0a3b0..d091592 100644
--- a/setup.py
+++ b/setup.py
@@ -80,7 +80,9 @@ class Check(Command):
def run_yarns(self):
cliapp.runcmd(
- ['yarn'] + glob.glob('yarns/*.yarn'),
+ ['yarn', '--shell=python2', '--shell-arg', '',
+ '--shell-library=yarns/lib.py', '--cd-datadir'] +
+ glob.glob('yarns/*.yarn'),
stdout=None, stderr=None)
def command_is_available(self, command_name):
diff --git a/without-tests b/without-tests
index 3966e3f..c4e0b48 100644
--- a/without-tests
+++ b/without-tests
@@ -17,3 +17,4 @@ distixlib/version.py
distixlib/util.py
distixlib/message_renderer.py
distixlib/html_renderer.py
+yarns/lib.py