[devscripts] 04/04: Run flake8 on Python3 scripts

Benjamin Drung bdrung at moszumanska.debian.org
Tue Jan 12 23:12:05 UTC 2016


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

bdrung pushed a commit to branch master
in repository devscripts.

commit 47563990e66f7e366675e4bca4c4333e56f46d48
Author: Benjamin Drung <bdrung at debian.org>
Date:   Wed Jan 13 00:05:56 2016 +0100

    Run flake8 on Python3 scripts
    
    Signed-off-by: Benjamin Drung <bdrung at debian.org>
---
 debian/control   | 1 +
 scripts/Makefile | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/control b/debian/control
index 2ebc5df..21caa4b 100644
--- a/debian/control
+++ b/debian/control
@@ -29,6 +29,7 @@ Build-Depends: bash-completion,
                pylint,
                python3-all,
                python3-debian (>= 0.1.15),
+               python3-flake8,
                python3-magic,
                python3-setuptools,
                shunit2 (>= 2.1.6),
diff --git a/scripts/Makefile b/scripts/Makefile
index 880cb73..41094bd 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -23,6 +23,7 @@ BC_BUILD_DIR:=bash_completion
 COMPLETION = $(patsubst %.bash_completion,$(BC_BUILD_DIR)/%,$(COMPL_FILES))
 COMPL_DIR := $(shell pkg-config --variable=completionsdir bash-completion)
 PKGNAMES:=wnpp-alert wnpp-check mk-build-deps rmadison mass-bug debsnap dd-list build-rdeps who-uploads transition-check getbuildlog dcontrol grep-excuses rc-alert whodepends dget pts-subscribe pts-unsubscribe debcheckout
+PYTHON3_SCRIPTS:=sadt suspicious-source wrap-and-sort
 
 GEN_MAN1S += devscripts.1 mk-origtargz.1 uscan.1
 
@@ -87,6 +88,7 @@ clean:
 		$(GEN_MAN1S) $(SCRIPT_LIBS) $(CWRAPPERS)
 
 test:
+	python3 -m flake8 --max-line-length=99 $(PYTHON3_SCRIPTS)
 	$(foreach python,$(shell py3versions -r ../debian/control),$(python) setup.py test$(\n))
 
 install: all

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list