<commit_before>language: python
dist: bionic
python:
  - "3.8"
  - "3.7"
  - "3.6"
  - "3.5"

install:
  - pip install -U pip wheel setuptools
  - pip install coveralls
  - pip install -r requirements/dev.txt
  - pip install -r doc/requirements.txt
script:
  - pytest --cov-report term-missing --cov=rohrpost tests
  - cd doc && make html
after_success:
  - coveralls

stages:
  - lint
  - test
  - name: release
    if: tag IS present

jobs:
  include:
    - stage: lint
      python: "3.8"
      install: pip install -r requirements/dev.txt
      script:
        - pylava .
        - isort -rc -c -df .
        - black --check --verbose --diff rohrpost tests
      after_success: true

    - stage: release
      script: skip
      before_deploy: ./check_version.sh
      deploy:
        provider: pypi
        user: axsemantics
        on:
          repo: axsemantics/rohrpost
          tags: true
          python: 3.6
        distributions: sdist bdist_wheel
        password:
          secure: <KEY>

cache:
  directories:
    - $HOME/.cache/pip
<commit_msg>[travis] Fix deployment<commit_after>language: python
dist: bionic
python:
  - "3.8"
  - "3.7"
  - "3.6"
  - "3.5"

install:
  - pip install -U pip wheel setuptools
  - pip install coveralls
  - pip install -r requirements/dev.txt
  - pip install -r doc/requirements.txt
script:
  - pytest --cov-report term-missing --cov=rohrpost tests
  - cd doc && make html
after_success:
  - coveralls

stages:
  - lint
  - test
  - name: release
    if: tag IS present

jobs:
  include:
    - stage: lint
      python: "3.8"
      install: pip install -r requirements/dev.txt
      script:
        - pylava .
        - isort -rc -c -df .
        - black --check --verbose --diff rohrpost tests
      after_success: true

    - stage: release
      python: "3.8"
      script: skip
      before_deploy: ./check_version.sh
      deploy:
        provider: pypi
        user: axsemantics
        on:
          repo: axsemantics/rohrpost
          tags: true
        distributions: sdist bdist_wheel
        password:
          <PASSWORD>: <KEY>

cache:
  directories:
    - $HOME/.cache/pip

{'fraction_non_alphanumeric': 0.10560747663551402, 'fraction_numerical': 0.011214953271028037, 'mean_word_length': 1.8060288335517694, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1110950', 'n_tokens_mistral': 735, 'n_tokens_neox': 719, 'n_words': 202}