<commit_before>[testenv:flake8]
description = Run the flake8 tool with several plugins (bandit, docstrings, import order, pep8 naming).
skip_install = true
deps =
    flake8
commands =
    flake8 \
        indra/sources/dgi/ \
        indra/sources/crog/

[testenv:pybel]
commands =
    nosetests indra.tests.test_pybel_api
    nosetests indra.tests.test_pybel_assembler
    nosetests indra.tests.test_model_checker
deps =
    nose
extras =
    bel
    explanation

[testenv:mypy]
description = Run the mypy tool to check static typing on the project.
deps = mypy
skip_install = true
commands = mypy --ignore-missing-imports \
           indra/sources/dgi/<commit_msg>Add tox tool for linting<commit_after>[testenv:flake8]
description = Run the flake8 tool with several plugins (bandit, docstrings, import order, pep8 naming).
skip_install = true
deps =
    flake8
commands =
    flake8 \
        indra/sources/dgi/ \
        indra/sources/crog/

[testenv:pybel]
commands =
    nosetests indra.tests.test_pybel_api
    nosetests indra.tests.test_pybel_assembler
    nosetests indra.tests.test_model_checker
deps =
    nose
extras =
    bel
    explanation

[testenv:mypy]
description = Run the mypy tool to check static typing on the project.
deps = mypy
skip_install = true
commands = mypy --ignore-missing-imports \
           indra/sources/dgi/

[testenv:lint]
description = Run the black tool.
deps = black
skip_install = true
commands = black \
    indra/sources/creeds \
    indra/tests/test_sources/test_creeds.py
{'fraction_non_alphanumeric': 0.07894736842105263, 'fraction_numerical': 0.006578947368421052, 'mean_word_length': 3.308781869688385, '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': '1573949', 'n_tokens_mistral': 523, 'n_tokens_neox': 519, 'n_words': 131}