<commit_before>sudo: false
language: python

python:
  - "3.3" # ST3 uses this, but we're only running flake8 anyway

install:
  - pip install flake8==3.3.0

script:
  - flake8 .<commit_msg>Add syntax testing to CI<commit_after>sudo: false
language: python

python:
  - "3.3"  # ST3 uses this internally, so we do as well for flake8

# branches:
#   except:
#     - /^v\d/

install:
  - pip install flake8==3.3.0
  # fetch syntax testing binary
  - wget --content-disposition https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests
  - tar xf "$(ls st3_syntax_tests_build_*_x64.tar.bz2)"
  - rm -R st3_syntax_tests*.tar.bz2
  - mv st3_syntax_tests ..

before_script:
  # setup portable testing env & fetch default packages
  - mkdir ../st3_syntax_tests/Data
  - git clone --depth=1 https://github.com/sublimehq/Packages.git ../st3_syntax_tests/Data/Packages  # --branch=v3157
  - ln -s "$PWD" ../st3_syntax_tests/Data/Packages/PackageDev

script:
  - ../st3_syntax_tests/syntax_tests
  - flake8 .
{'fraction_non_alphanumeric': 0.12810327706057598, 'fraction_numerical': 0.03574975173783516, 'mean_word_length': 3.2531645569620253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3767965', 'n_tokens_mistral': 405, 'n_tokens_neox': 378, 'n_words': 88}