Home | History | Annotate | Download | only in html5lib-python
      1 #!/bin/bash -e
      2 
      3 if [[ ! -x $(which flake8) ]]; then
      4   echo "fatal: flake8 not found on $PATH. Exiting."
      5   exit 1
      6 fi
      7 
      8 if [[ $TRAVIS != "true" || $FLAKE == "true" ]]; then
      9   find html5lib/ -name '*.py' -and -not -name 'constants.py' -print0 | xargs -0 flake8 --ignore=E501
     10   flake1=$?
     11   flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py
     12   flake2=$?
     13   exit $[$flake1 || $flake2]
     14 fi
     15