mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-17 19:11:06 +00:00
clean up test file lists
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3139 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
814ce226a1
commit
c048b066d9
1 changed files with 6 additions and 10 deletions
16
Makefile
16
Makefile
|
|
@ -5,14 +5,10 @@ PACKAGE := linkchecker
|
|||
VERSION := $(shell $(PYTHON) setup.py --version)
|
||||
HOST=www.debian.org
|
||||
LCOPTS=-Ftext -Fhtml -Fgml -Fsql -Fcsv -Fxml -Fgxml -Fdot -v -r1 -t0 -C
|
||||
PYFILES := $(wildcard linkcheck/*.py linkcheck/logger/*.py \
|
||||
linkcheck/checker/*.py)
|
||||
TESTFILES := $(wildcard tests/*.py linkcheck/tests/*.py linkcheck/checker/tests/*.py)
|
||||
CHECKFILES = *.py linkchecker scripts tests linkcheck config
|
||||
PYLINT := env PYTHONPATH=. PYLINTRC=config/pylintrc pylint.$(PYTHON)
|
||||
PYLINTOPTS :=
|
||||
PYLINTIGNORE = linkcheck/httplib2.py
|
||||
PYLINTFILES = $(filter-out $(PYLINTIGNORE),$(PYFILES))
|
||||
# all Python files in the source
|
||||
PYFILES = $(wildcard *.py) linkchecker linkcheck tests
|
||||
PYLINT := env PYTHONPATH=. PYLINTRC=config/pylintrc /usr/bin/pylint
|
||||
PYLINTOPTS := --disable-msg-cat=C,R,W
|
||||
PYFLAKES:=pyflakes
|
||||
PYTHONSVN := /home/calvin/src/python-svn
|
||||
.PHONY: all
|
||||
|
|
@ -127,11 +123,11 @@ test: localbuild
|
|||
|
||||
.PHONY: pylint
|
||||
pylint:
|
||||
$(PYLINT) $(PYLINTOPTS) $(PYLINTFILES) $(TESTFILES)
|
||||
$(PYLINT) $(PYLINTOPTS) $(PYFILES) | uniq
|
||||
|
||||
.PHONY: pyflakes
|
||||
pyflakes:
|
||||
$(PYFLAKES) $(CHECKFILES) | \
|
||||
$(PYFLAKES) $(PYFILES) | \
|
||||
grep -v "redefinition of unused 'linkcheck'" | \
|
||||
grep -v "undefined name '_'" | \
|
||||
grep -v "undefined name '_n'"
|
||||
|
|
|
|||
Loading…
Reference in a new issue