Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (15 sloc) 399 Bytes
#!/bin/zsh
check_docformat(){
if ! grep -q '__docformat__' $1 ; then
echo "warning: file '$1' does not contain a '__docformat__' declaration!"
fi
}
check_coding(){
if ! grep -q -e 'coding: utf-8' $1 ; then
echo "warning: file '$1' does not contain a coding declaration!"
fi
}
for f in $( ls pelita/**/*.py ) ; do
check_docformat $f
check_coding $f
done
Something went wrong with that request. Please try again.