• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash -e
2
3if [[ ! -x $(which flake8) ]]; then
4  echo "fatal: flake8 not found on $PATH. Exiting."
5  exit 1
6fi
7
8if [[ $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]
14fi
15