<commit_before>language: python
cache:
  pip: true
  directories:
    - $HOME/.cache/pre-commit

python:
  - "2.7"
  - "3.5"
  - "3.6"
  - "3.7"
  - "3.8"

install:
  - "pip install setuptools --upgrade"
  - "pip install pytest pre-commit"
  - "pre-commit install"
  - "pip install ."
env:
  - MODEL_TECH=dummy_value
script:
  - "set -e"
  - "pre-commit run --all-files --show-diff-on-failure"
  - "fusesoc init -y"
  - "fusesoc list-cores"
  - "fusesoc library update"
  - "pytest"<commit_msg>Only run lint on Python 3.8<commit_after>language: python
cache:
  pip: true
  directories:
    - $HOME/.cache/pre-commit

env:
  - MODEL_TECH=dummy_value TEST_CMD="pytest"

matrix:
  include:
    - name: "lint"
      python: 3.8
      env:
        - TEST_CMD="pre-commit run --all-files --show-diff-on-failure"
    - name: "2.7"
      python: 2.7
    - name: "3.5"
      python: 3.5
    - name: "3.6"
      python: 3.6
    - name: "3.7"
      python: 3.7
    - name: "3.8"
      python: 3.8

install:
  - pip install -U setuptools pytest pre-commit
  - pip install .
  - pre-commit install

  - fusesoc init -y
  - fusesoc list-cores
  - fusesoc library update

script:
  - $TEST_CMD
{'fraction_non_alphanumeric': 0.15195246179966043, 'fraction_numerical': 0.028862478777589132, 'mean_word_length': 2.086387434554974, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3973226', 'n_tokens_mistral': 497, 'n_tokens_neox': 484, 'n_words': 110}