<commit_before>[tox]
project_name = uharfbuzz
envlist = py3{6,7},py3{6,7}-cov,coverage
skip_missing_interpreters = true

[testenv]
skip_install =
    cov: true
    !cov: false
deps =
    pytest
    cov: -rrequirements-dev.txt
changedir= {toxinidir}
setenv =
    cov: PYTHONPATH=src/uharfbuzz
    cov: CYTHON_ANNOTATE=1
    cov: CYTHON_LINETRACE=1
commands =
    !cov: pytest {posargs}
    cov: pip install --no-build-isolation -e .
    cov: python -c 'import shutil, glob; src = glob.glob("_skbuild/*/cmake-build/uharfbuzz-prefix/src/uharfbuzz-build/_harfbuzz.c"); src and shutil.copy(src[0], "src/uharfbuzz/_harfbuzz.c")'
    cov: python -c 'import shutil, glob; src = glob.glob("_skbuild/*/cmake-build/uharfbuzz-prefix/src/uharfbuzz-build/_harfbuzz.html"); src and shutil.copy(src[0], "src/uharfbuzz/_harfbuzz.html")'
    cov: coverage run --parallel -m pytest {posargs}

[testenv:coverage]
skip_install = true
deps =
    cython<commit_msg>tox: simplify envlist, use setup.py develop for cov env<commit_after>[tox]
project_name = uharfbuzz
envlist = py3,py3-cov,coverage
skip_missing_interpreters = true

[testenv]
skip_install =
    cov: true
    !cov: false
deps =
    pytest
    cov: -rrequirements-dev.txt
changedir= {toxinidir}
setenv =
    cov: PYTHONPATH=src/uharfbuzz
    cov: CYTHON_ANNOTATE=1
    cov: CYTHON_LINETRACE=1
commands =
    !cov: pytest {posargs}
    cov: python setup.py develop
    cov: python -c 'import shutil, glob; src = glob.glob("_skbuild/*/cmake-build/uharfbuzz-prefix/src/uharfbuzz-build/_harfbuzz.c"); src and shutil.copy(src[0], "src/uharfbuzz/_harfbuzz.c")'
    cov: python -c 'import shutil, glob; src = glob.glob("_skbuild/*/cmake-build/uharfbuzz-prefix/src/uharfbuzz-build/_harfbuzz.html"); src and shutil.copy(src[0], "src/uharfbuzz/_harfbuzz.html")'
    cov: coverage run --parallel -m pytest {posargs}

[testenv:coverage]
skip_install = true
deps =
    cython
{'fraction_non_alphanumeric': 0.13459516298633017, 'fraction_numerical': 0.008412197686645636, 'mean_word_length': 4.185286103542234, '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': '149267', 'n_tokens_mistral': 757, 'n_tokens_neox': 764, 'n_words': 148}