<commit_before>language: python
branches:
  only:
    - master
before_install:
  - sudo add-apt-repository --yes ppa:fontforge/fontforge
  - sudo apt-get update -qq
  - sudo apt-get install python-fontforge ttfautohint swig
  - pip install --upgrade pip
install:
  - export LD_LIBRARY_PATH=/usr/local/lib
  - cp /usr/lib/python2.7/dist-packages/fontforge.* /home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages
  - pip install BeautifulSoup4
  - pip install filemagic
  - pip install requests
  - pip install flake8
  - pip install protobuf
  - pip install unidecode
  - pip install lxml
  - pip install defusedxml
  - pip install tabulate
  - pip install pillow
  - pip install flask
  - pip install pylint
  - "pip install git+https://github.com/behdad/fonttools.git"
  - "pip install git+https://github.com/googlei18n/glyphsLib.git"
script:
  - export FLAKE8IGNORE=E111,E114,E701,E121,E266,E221,E226,E126,W191,W293
  - export WONT_FIX=invalid-name
  - export MAYBE_SOMEDAY=fixme,missing-docstring,redefined-outer-name,too-many-locals,assignment-from-no-return,no-member,too-many-branches,too-many-statements
  - export PYLINT="pylint --disable=$WONT_FIX,$MAYBE_SOMEDAY"
  - $PYLINT fontbakery-check-ttf.py
  - flake8 --statistics fontbakery-check-description.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics fontbakery-check-upstream.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics fbchecklogger.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics utils.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics constants.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics checks.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics upstreamdirectory.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics pifont.py --ignore=$FLAKE8IGNORE
  - python fontbakery-check-ttf.py data/test/cousine/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/mada/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/merriweather/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/nunito/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/familysans/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/cabin/*.ttf --ghm --json
  - python test_args.py
<commit_msg>I'm disabling all detected pylint issues to see how travis deals with it.<commit_after>language: python
branches:
  only:
    - master
before_install:
  - sudo add-apt-repository --yes ppa:fontforge/fontforge
  - sudo apt-get update -qq
  - sudo apt-get install python-fontforge ttfautohint swig
  - pip install --upgrade pip
install:
  - export LD_LIBRARY_PATH=/usr/local/lib
  - cp /usr/lib/python2.7/dist-packages/fontforge.* /home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages
  - pip install BeautifulSoup4
  - pip install filemagic
  - pip install requests
  - pip install flake8
  - pip install protobuf
  - pip install unidecode
  - pip install lxml
  - pip install defusedxml
  - pip install tabulate
  - pip install pillow
  - pip install flask
  - pip install pylint
  - "pip install git+https://github.com/behdad/fonttools.git"
  - "pip install git+https://github.com/googlei18n/glyphsLib.git"
script:
  - export FLAKE8IGNORE=E111,E114,E701,E121,E266,E221,E226,E126,W191,W293
  - export WONT_FIX=invalid-name
  - export MAYBE_SOMEDAY=fixme,missing-docstring,redefined-outer-name,too-many-locals,assignment-from-no-return,no-member,too-many-branches,too-many-statements,bad-continuation,unidiomatic-typecheck,logging-format-interpolation,too-many-nested-blocks,unused-variable
  - export PYLINT="pylint --disable=$WONT_FIX,$MAYBE_SOMEDAY"
  - $PYLINT fontbakery-check-ttf.py
  - flake8 --statistics fontbakery-check-description.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics fontbakery-check-upstream.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics fbchecklogger.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics utils.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics constants.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics checks.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics upstreamdirectory.py --ignore=$FLAKE8IGNORE
  - flake8 --statistics pifont.py --ignore=$FLAKE8IGNORE
  - python fontbakery-check-ttf.py data/test/cousine/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/mada/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/merriweather/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/nunito/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/familysans/*.ttf --ghm --json
  - python fontbakery-check-ttf.py data/test/cabin/*.ttf --ghm --json
  - python test_args.py

{'fraction_non_alphanumeric': 0.12770137524557956, 'fraction_numerical': 0.025758567998253656, 'mean_word_length': 3.5637450199203187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4683743', 'n_tokens_mistral': 1809, 'n_tokens_neox': 1702, 'n_words': 308}