<commit_before>[tox]
envlist = py3

[testenv]
# Dependencies prefixed with "ci: " are only installed when running in CI,
# which calls effectively "tox -e py3-ci" (see the gh-actions section below).
deps =
    pytest
    ci: pytest-github-actions-annotate-failures

# Some tests need an initialized FuseSoC library to be present. To make tests
# reproducible tox doesn't use the library installed into the user's home
# directory, but creates an isolated home directory within the tox working
# directory, and clears it out after each test.
commands =
    /bin/rm -rf {toxworkdir}/.tmp/homedir
    fusesoc library add fusesoc_cores https://github.com/fusesoc/fusesoc-cores
    fusesoc list-cores
    fusesoc library update
    pytest {posargs:-vv}

setenv =
    MODEL_TECH = dummy_value
    HOME = {toxworkdir}/.tmp/homedir
    XDG_CACHE_HOME = {toxworkdir}/.tmp/homedir/.cache
    XDG_DATA_HOME= {toxworkdir}/.tmp/homedir/.local/share
    XDG_CONFIG_HOME = {toxworkdir}/.tmp/homedir/.config

passenv =
    GITHUB_ACTIONS

whitelist_externals =
  /bin/rm

[testenv:doc]
# Note: this target is *not* used by ReadTheDocs, which runs sphinx-build
# directly. Hence, all special build steps here are only relevant for
# local builds, not for RTD builds. Add all build steps which should be executed
# in RTD builds as Python code into the conf.py file.
description = Build the HTML documentation with Sphinx<commit_msg>Tox: More selectively remove directories<commit_after>[tox]
envlist = py3

[testenv]
# Dependencies prefixed with "ci: " are only installed when running in CI,
# which calls effectively "tox -e py3-ci" (see the gh-actions section below).
deps =
    pytest
    ci: pytest-github-actions-annotate-failures

# Some tests need an initialized FuseSoC library to be present. To make tests
# reproducible tox doesn't use the library installed into the user's home
# directory, but creates an isolated home directory within the tox working
# directory, and clears it out after each test.
commands =
    /bin/rm -rf {toxworkdir}/.tmp/homedir/.cache {toxworkdir}/.tmp/homedir/.local/share {toxworkdir}/.tmp/homedir/.config
    mkdir -p {toxworkdir}/.tmp/homedir/.config/fusesoc
    fusesoc --verbose library add --global fusesoc_cores https://github.com/fusesoc/fusesoc-cores
    fusesoc list-cores
    fusesoc library update
    pytest {posargs:-vv}

setenv =
    MODEL_TECH = dummy_value
    XDG_CACHE_HOME = {toxworkdir}/.tmp/homedir/.cache
    XDG_DATA_HOME= {toxworkdir}/.tmp/homedir/.local/share
    XDG_CONFIG_HOME = {toxworkdir}/.tmp/homedir/.config

passenv =
    GITHUB_ACTIONS

whitelist_externals =
  /bin/rm
  /usr/bin/mkdir

[testenv:doc]
# Note: this target is *not* used by ReadTheDocs, which runs sphinx-build
# directly. Hence, all special build steps here are only relevant for
# local builds, not for RTD builds. Add all build steps which should be executed
# in RTD builds as Python code into the conf.py file.
description = Build the HTML documentation with Sphinx
{'fraction_non_alphanumeric': 0.08625877632898696, 'fraction_numerical': 0.0013373453694416582, 'mean_word_length': 3.8729641693811074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5113739', 'n_tokens_mistral': 1003, 'n_tokens_neox': 947, 'n_words': 325}