<commit_before># Tox configuration for linting and tests.
#
# IMPORTANT NOTE:
# - Installing wxPython is non-trivial on GNU/Linux. We need to install wheels from a dedicated repository,
#   located at https://extras.wxpython.org/wxPython4/extras/linux/. For beackground reading see
#   https://wiki.wxpython.org/How%20to%20install%20wxPython#Installing_wxPython-Phoenix_using_pip
# - The wheel repository specified via --find-links below matches the build environment on Travis CI.
# - For local Tox runs adapt the wheel repository URLs to match your local environment.

[tox]
envlist =
    flake8
    pylint
    py36
    py37

[testenv]
deps =
    pytest
commands =
    {envpython} -m pip install --find-links https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
    {envpython} -m pytest

[testenv:flake8]
basepython = python3.6
deps =
    flake8
commands =
    {envpython} -m flake8 {posargs}

[testenv:pylint]
basepython = python3.6
deps =
    pyinstaller
    pylint
commands =
    {envpython} -m pip install --find-links https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
    {envpython} -m pylint --rcfile tox.ini {posargs:pythonturtle setup}

[flake8]
exclude =
    .cache
    .git
    .tox
    build
    dist

[pylint]
disable = attribute-defined-outside-init,invalid-name,missing-docstring,no-member,self-cls-assignment,too-few-public-methods,too-many-instance-attributes,too-many-locals,too-many-statements,unused-argument,fixme,no-self-use,arguments-differ
reports = no

[pytest]
addopts = --junitxml=tests/reports/unittests.xml --strict --verbose<commit_msg>Test commit<commit_after># Tox configuration for linting and tests.
#
# IMPORTANT NOTE:
# - Installing wxPython is non-trivial on GNU/Linux. We need to install wheels from a dedicated repository,
#   located at https://extras.wxpython.org/wxPython4/extras/linux/. For beackground reading see
#   https://wiki.wxpython.org/How%20to%20install%20wxPython#Installing_wxPython-Phoenix_using_pip
# - The wheel repository specified via --find-links below matches the build environment on Travis CI.
# - For local Tox runs adapt the wheel repository URLs to match your local environment.

[tox]
envlist =
    flake8
    pylint
    py36
    py37

[testenv]
deps =
    pytest
commands =
    {envpython} -m pip install --find-links https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
    {envpython} -m pytest

[testenv:flake8]
basepython = python3.6
deps =
    flake8
commands =
    {envpython} -m flake8 {posargs}

[testenv:pylint]
basepython = python3.6
deps =
    pyinstaller
    pylint
commands =
    {envpython} -m pip install --find-links https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
    {envpython} -m pylint --rcfile tox.ini {posargs:pythonturtle setup}

[flake8]
exclude =
    .cache
    .git
    .tox
    build
    dist

[pylint]
disable = attribute-defined-outside-init,invalid-name,missing-docstring,no-member,self-cls-assignment,too-few-public-methods,too-many-instance-attributes,too-many-locals,too-many-statements,unused-argument,fixme,no-self-use,arguments-differ
reports = no

[pytest]
addopts = --junitxml=tests/reports/unittests.xml --strict --verbose
 
{'fraction_non_alphanumeric': 0.1091245376078915, 'fraction_numerical': 0.01972872996300863, 'mean_word_length': 3.8577844311377247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1227900', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1110, 'n_words': 256}