<commit_before>[tox]
envlist = py3

[testenv]
deps =
    pytest-cov
    coverage < 6
extras =
    test
commands =
    python -m julia.find_libpython --list-all --verbose
    # Print libpython candidates found by `find_libpython`.  It may be
    # useful for debugging.

    python -m julia.runtests -- \
        --log-file {envlogdir}/pytest.log \
	{posargs}

commands_post =
    # Strip off ".tox/..." from the coverage
    # (see also [[coverage:paths]]):
    -coverage combine .coverage
    -coverage xml
    -coverage report

setenv =
    PYJULIA_TEST_PYTHON_JL_IS_INSTALLED = yes

passenv =
    # Allow a workaround for "error initializing LibGit2 module":
    # https://github.com/JuliaLang/julia/issues/18693
    # https://github.com/JuliaDiffEq/diffeqpy/pull/13/commits/850441ee63962a2417de2bce6f6223052ee9cceb
    SSL_CERT_FILE

    # See: julia/with_rebuilt.py
    PYJULIA_TEST_REBUILD
    PYJULIA_TEST_RUNTIME

    JULIA_DEBUG

    # See: test/test_compatible_exe.py
    PYJULIA_TEST_INCOMPATIBLE_PYTHONS

    # See: https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
    TRAVIS
    TRAVIS_*

    # https://www.appveyor.com/docs/environment-variables/
    APPVEYOR

    # https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
    GITHUB_ACTIONS

    CI

[pytest]
log_file_level = DEBUG
# Essential flags and configuration must be added to
# src/julia/runtests.py

markers =
    pyjulia__using_default_setup: mark tests to be skipped with non-default setup
# https://docs.pytest.org/en/latest/mark.html#registering-marks

[coverage:paths]
source =
    src/julia
    .tox/*/lib/python*/site-packages/julia
# https://coverage.readthedocs.io/en/coverage-4.5.3/config.html#paths

[testenv:doc]
deps =
    -r{toxinidir}/docs/requirements.txt
commands =
    sphinx-build -b "html" -d build/doctrees {posargs} source "build/html"
commands_post =
changedir = {toxinidir}/docs

[testenv:style]
deps =
    isort == 4.3.17
    black == 19.3b0
commands =
    isort --recursive --check-only .
    black . {posargs:--check --diff}
commands_post =<commit_msg>Update black version to fix formatting fail<commit_after>[tox]
envlist = py3

[testenv]
deps =
    pytest-cov
    coverage < 6
extras =
    test
commands =
    python -m julia.find_libpython --list-all --verbose
    # Print libpython candidates found by `find_libpython`.  It may be
    # useful for debugging.

    python -m julia.runtests -- \
        --log-file {envlogdir}/pytest.log \
	{posargs}

commands_post =
    # Strip off ".tox/..." from the coverage
    # (see also [[coverage:paths]]):
    -coverage combine .coverage
    -coverage xml
    -coverage report

setenv =
    PYJULIA_TEST_PYTHON_JL_IS_INSTALLED = yes

passenv =
    # Allow a workaround for "error initializing LibGit2 module":
    # https://github.com/JuliaLang/julia/issues/18693
    # https://github.com/JuliaDiffEq/diffeqpy/pull/13/commits/850441ee63962a2417de2bce6f6223052ee9cceb
    SSL_CERT_FILE

    # See: julia/with_rebuilt.py
    PYJULIA_TEST_REBUILD
    PYJULIA_TEST_RUNTIME

    JULIA_DEBUG

    # See: test/test_compatible_exe.py
    PYJULIA_TEST_INCOMPATIBLE_PYTHONS

    # See: https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
    TRAVIS
    TRAVIS_*

    # https://www.appveyor.com/docs/environment-variables/
    APPVEYOR

    # https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
    GITHUB_ACTIONS

    CI

[pytest]
log_file_level = DEBUG
# Essential flags and configuration must be added to
# src/julia/runtests.py

markers =
    pyjulia__using_default_setup: mark tests to be skipped with non-default setup
# https://docs.pytest.org/en/latest/mark.html#registering-marks

[coverage:paths]
source =
    src/julia
    .tox/*/lib/python*/site-packages/julia
# https://coverage.readthedocs.io/en/coverage-4.5.3/config.html#paths

[testenv:doc]
deps =
    -r{toxinidir}/docs/requirements.txt
commands =
    sphinx-build -b "html" -d build/doctrees {posargs} source "build/html"
commands_post =
changedir = {toxinidir}/docs

[testenv:style]
deps =
    isort == 4.3.17
    black == 22.3.0
commands =
    isort --recursive --check-only .
    black . {posargs:--check --diff}
commands_post =
{'fraction_non_alphanumeric': 0.11380424746075715, 'fraction_numerical': 0.02123730378578024, 'mean_word_length': 3.23972602739726, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '7398921', 'n_tokens_mistral': 1694, 'n_tokens_neox': 1594, 'n_words': 286}