<commit_before>if: >  # Forbid running non-PR pushes from pyup bot
  not (type != pull_request AND branch =~ ^pyup\-scheduled\-update\-)

dist: xenial

language: python

python:
- 3.5
- 3.6
- &mainstream_python 3.7
- 3.8-dev
- pypy3

install:
- pip install --upgrade pip wheel setuptools
- pip install -r requirements/ci.txt

script:
- make cov-ci-run

after_success:
 - codecov

_helpers:
  # anchor nodes to be included elsewhere.
- &mainstream_python_base
  python: *mainstream_python

- &lint_base
  <<: *mainstream_python_base
  env: []
  before_install: skip
  install: skip
  before_script: skip
  script: skip
  stage: &doc_stage_name docs, linting and pre-test checks

deploy:
  provider: pypi
  username: __token__
  password:
    # Encrypted with `travis encrypt`:
    secure: "<KEY>
  distributions: "sdist bdist_wheel"
  skip_existing: true
  on:
    <<: *mainstream_python_base
    tags: true
    all_branches: true

os: linux

matrix:
  fast_finish: true
  allow_failures:
  - python: 3.8-dev

  - <<: *lint_base
    name: Checking docs spelling
    before_script:
    - pip install --upgrade -r requirements/doc-spelling.txt
    script:
    - make doc-spelling
    after_failure: cat docs/_build/spelling/output.txt
    addons:
      apt:
        packages:
        - libenchant-dev

  - <<: *lint_base
    name: Checking Towncrier fragments
    before_script:
    - pip install --upgrade -r requirements/towncrier.txt
    script:
    - towncrier --yes

  - <<: *lint_base
    name: Linting source code with flake8
    before_script:
    - pip install --upgrade -r requirements/flake.txt
    script:
    - flake8 aiosignal tests

  - <<: *lint_base
    name: Linting source code with mypy
    script:
    - mypy aiosignal

  - <<: *lint_base
    name: Verifying distribution package metadata
    script:
    - python setup.py --verbose sdist bdist_wheel
    - twine check dist/*

  - <<: *lint_base
    name: Making sure that CONTRIBUTORS.txt remains sorted
    language: shell
    install: skip
    script:
    - LC_ALL=C sort -c CONTRIBUTORS.txt

stages:
- *doc_stage_name
- test
- deploy

cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
<commit_msg>CI: Another attempt at supplying the correct PYPI token.<commit_after>if: >  # Forbid running non-PR pushes from pyup bot
  not (type != pull_request AND branch =~ ^pyup\-scheduled\-update\-)

dist: xenial

language: python

python:
- 3.5
- 3.6
- &mainstream_python 3.7
- 3.8-dev
- pypy3

install:
- pip install --upgrade pip wheel setuptools
- pip install -r requirements/ci.txt

script:
- make cov-ci-run

after_success:
 - codecov

_helpers:
  # anchor nodes to be included elsewhere.
- &mainstream_python_base
  python: *mainstream_python

- &lint_base
  <<: *mainstream_python_base
  env: []
  before_install: skip
  install: skip
  before_script: skip
  script: skip
  stage: &doc_stage_name docs, linting and pre-test checks

deploy:
  provider: pypi
  username: __token__
  password:
    # Encrypted with `travis encrypt`:
    secure: "<KEY>
  distributions: "sdist bdist_wheel"
  skip_existing: true
  on:
    <<: *mainstream_python_base
    tags: true
    all_branches: true

os: linux

matrix:
  fast_finish: true
  allow_failures:
  - python: 3.8-dev

  - <<: *lint_base
    name: Checking docs spelling
    before_script:
    - pip install --upgrade -r requirements/doc-spelling.txt
    script:
    - make doc-spelling
    after_failure: cat docs/_build/spelling/output.txt
    addons:
      apt:
        packages:
        - libenchant-dev

  - <<: *lint_base
    name: Checking Towncrier fragments
    before_script:
    - pip install --upgrade -r requirements/towncrier.txt
    script:
    - towncrier --yes

  - <<: *lint_base
    name: Linting source code with flake8
    before_script:
    - pip install --upgrade -r requirements/flake.txt
    script:
    - flake8 aiosignal tests

  - <<: *lint_base
    name: Linting source code with mypy
    script:
    - mypy aiosignal

  - <<: *lint_base
    name: Verifying distribution package metadata
    script:
    - python setup.py --verbose sdist bdist_wheel
    - twine check dist/*

  - <<: *lint_base
    name: Making sure that CONTRIBUTORS.txt remains sorted
    language: shell
    install: skip
    script:
    - LC_ALL=C sort -c CONTRIBUTORS.txt

stages:
- *doc_stage_name
- test
- deploy

cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

{'fraction_non_alphanumeric': 0.09748356381772841, 'fraction_numerical': 0.005894355021537067, 'mean_word_length': 2.7969018932874357, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 7, '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': '5340047', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1495, 'n_words': 416}