[diffoscope] 03/03: Make failing a some flake8 tests cause the testsuite to fail. (Currently just "undefined name")

Chris Lamb chris at chris-lamb.co.uk
Fri Sep 8 23:06:59 CEST 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit fd06241bf8d323c0c2828b65bc3ea358c6484bd0
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Sep 8 22:05:49 2017 +0100

    Make failing a some flake8 tests cause the testsuite to fail. (Currently just "undefined name")
---
 debian/control | 1 +
 debian/rules   | 1 +
 setup.cfg      | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/debian/control b/debian/control
index ad93b13..49be28f 100644
--- a/debian/control
+++ b/debian/control
@@ -21,6 +21,7 @@ Build-Depends:
  dpkg-dev (>= 1.17.14),
  device-tree-compiler (>= 1.4.2) <!nocheck>,
  enjarify <!nocheck>,
+ flake8 <!nocheck>,
  fontforge-extras <!nocheck>,
  fp-utils <!nocheck>,
  ghc <!nocheck>,
diff --git a/debian/rules b/debian/rules
index 146c80f..cac8f0a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,7 @@ export PATH := $(CURDIR)/bin:$(PATH)
 export PYBUILD_DESTDIR = debian/diffoscope
 export PYBUILD_TEST_ARGS = -vv -r sxX -l --cov=diffoscope --cov-report=term-missing --cov-report=html
 export PYBUILD_AFTER_TEST = debian/tests/basic-command-line
+export PYBUILD_BEFORE_TEST = flake8
 export PYBUILD_AFTER_INSTALL = rm -rvf '{destdir}/{install_dir}/htmlcov' '{destdir}/{install_dir}/.coverage'
 
 ifneq ($(JENKINS_EXPORTS_DIR),)
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..e6087e1
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,2 @@
+[flake8]
+select=F821

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list