https://github.com/praw-dev/praw
Raw File
Tip revision: 074bbe107071cb204677b61f0d5a4204f766bc52 authored by Bryce Boe on 25 July 2016, 19:41:01 UTC
Bump to 4.0.0b11.
Tip revision: 074bbe1
pre_push.sh
#!/bin/bash

dir=$(dirname $0)

# flake8
flake8 --exclude=docs
if [ $? -ne 0 ]; then
    echo "Exiting due to flake8 errors. Fix and re-run to finish tests."
    exit $?
fi

# pydocstyle
pydocstyle praw
if [ $? -ne 0 ]; then
    echo "Exiting due to pydocstyle errors. Fix and re-run to finish tests."
    exit $?
fi

# pylint
output=$(pylint --rcfile=$dir/.pylintrc $dir/praw 2> /dev/null)
if [ -n "$output" ]; then
    echo "--pylint--"
    echo -e "$output"
fi


exit 0
back to top