mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-03 12:24:46 +00:00
add nocoding target
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3012 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
48cdfd32ee
commit
a3ef5f88c4
1 changed files with 17 additions and 0 deletions
17
Makefile
17
Makefile
|
|
@ -129,3 +129,20 @@ pyflakes:
|
|||
.PHONY: reindent
|
||||
reindent:
|
||||
$(PYTHON) config/reindent.py -r -v linkcheck
|
||||
|
||||
# find Python files without coding line
|
||||
.PHONY: nocoding
|
||||
nocoding:
|
||||
@for f in `find . -type f -name \*.py`; do \
|
||||
if ! grep -q -- "-\*- coding: .* -\*-" $$f; then \
|
||||
echo "No coding: $$f"; \
|
||||
fi; \
|
||||
done
|
||||
@for f in `find . -type f`; do \
|
||||
if head -1 $$f | egrep -q "#!.*python"; then \
|
||||
if ! grep -q -- "-\*- coding: .* -\*-" $$f; then \
|
||||
echo "No coding: $$f"; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue