<commit_before># Refs
# - http://docs.travis-ci.com/user/build-configuration/
# - https://docs.travis-ci.com/user/languages/python/#python-37-and-higher

sudo: false
language: python
virtualenv:
  system_site_packages: false
os:
- linux
#- osx
# It's difficult to get newer python versions on Travis/osx. Ref
# https://docs.travis-ci.com/user/languages/python/#running-python-tests-on-multiple-operating-systems
env:
  # Does not increase build matrix
  global:
    - TRAVIS="true"
    - PYTEST_ARGS="--ignore=tests/test_plotting.py --ignore=tests/test_demos.py"
    - COVERAGE="false"
    - DISTRIB="included" # the python distribution
  # Increases the build matrix (multiplies it by the number of jobs)
  # jobs:
  #   - COVERAGE="true"
python:
- 3.9
- 3.8
#- 3.7 doesnt work with magic_naming() and spell_out()
jobs:
  fast_finish: true
  # Special cases
  # NB: inherits the "top" python version (and os version?) above.
  #     However, the DISTRIB=conda downloads conda on top of it.
  include:
    - env: COVERAGE="true"
    #- env: TOX_PYTHON_VERSION="py39" COVERAGE="true" # similar to pyscaffold
    - env: DISTRIB="conda" PYTHON_VERSION="3.8"
# before_install:
#   - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi
install:
  - source tests/travis_install.sh
before_script:
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "<NAME>"
script:
  #- python setup.py develop
  - pip install -e .
  # Run flake8 via pre-commit instead.
  #- flake8 . # Use --exit-zero to ignore failure
  - |
    if [[ "$COVERAGE" == "true" ]]; then
      pre-commit install
      pre-commit run --all-files
      pytest $PYTEST_ARGS --cov=dapper
    else
      pytest $PYTEST_ARGS
    fi
after_success:
  - |
    if [[ "$COVERAGE" == "true" ]]; then
       coveralls || echo "failed"
    fi
after_script:
  - travis-cleanup
cache:
  pip: true
  directories:
    - $HOME/miniconda
<commit_msg>Try to add osx to travis by using conda<commit_after># Refs
# - http://docs.travis-ci.com/user/build-configuration/
# - https://docs.travis-ci.com/user/languages/python/#python-37-and-higher

sudo: false
language: python
virtualenv:
  system_site_packages: false
env:
  # Does not increase build matrix
  global:
    - TRAVIS="true"
    - PYTEST_ARGS="--ignore=tests/test_plotting.py --ignore=tests/test_demos.py"
    - COVERAGE="false"
    - DISTRIB="included" # the python distribution
  # Increases the build matrix (multiplies it by the number of jobs)
  # jobs:
  #   - COVERAGE="true"
python:
- 3.9
- 3.8
#- 3.7 doesnt work with magic_naming() and spell_out()
jobs:
  fast_finish: true
  # Special cases
  # NB: inherits the "top" python version (and os version?) above.
  #     However, the DISTRIB=conda downloads conda on top of it.
  include:
    - env: COVERAGE="true"
    #- env: TOX_PYTHON_VERSION="py39" COVERAGE="true" # similar to pyscaffold
    - env: DISTRIB="conda" PYTHON_VERSION="3.8"
    - os: osx
      env: DISTRIB="conda" PYTHON_VERSION="3.8"
      language: shell
# before_install:
#   - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi
install:
  - source tests/travis_install.sh
before_script:
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "<NAME>"
script:
  #- python setup.py develop
  - pip install -e .
  # Run flake8 via pre-commit instead.
  #- flake8 . # Use --exit-zero to ignore failure
  - |
    if [[ "$COVERAGE" == "true" ]]; then
      pre-commit install
      pre-commit run --all-files
      pytest $PYTEST_ARGS --cov=dapper
    else
      pytest $PYTEST_ARGS
    fi
after_success:
  - |
    if [[ "$COVERAGE" == "true" ]]; then
       coveralls || echo "failed"
    fi
after_script:
  - travis-cleanup
cache:
  pip: true
  directories:
    - $HOME/miniconda

{'fraction_non_alphanumeric': 0.13320925285828236, 'fraction_numerical': 0.007976601967561819, 'mean_word_length': 3.002127659574468, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3978760', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1350, 'n_words': 343}