<commit_before>[tox]
skipsdist = true
envlist =
    api-lint,
    ui-lint,
    api,
    ui,
    swagger,

[testenv]
;basepython = python2.7
whitelist_externals = make
; setenv =
;     DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
;     SWIG_FEATURES = -cpperraswarn -includeall -I/usr/include/openssl
;     HOME = {homedir}
;     USERPROFILE = {homedir}
;     ANSIBLE_VENV_PATH = {toxworkdir}
;     AWX_VENV_PATH = {toxworkdir}
;     SKIP_SLOW_TESTS = True

[testenv:api-lint]
deps =
    -r{toxinidir}/requirements/requirements_dev.txt
    coverage
    coveralls
commands =
    flake8

[testenv:ui-lint]
deps =
    nodeenv
commands =
    make clean-ui
    make ui-devel
    npm run --prefix awx/ui jshint
    npm run --prefix awx/ui lint

[testenv:api]
deps =
    #-r{toxinidir}/requirements/requirements.txt
    #-r{toxinidir}/requirements/requirements_git.txt
    #-r{toxinidir}/requirements/requirements_dev.txt
    #ansible
    #coverage
    #coveralls
    docker-compose
commands =
    #python setup.py develop
    # coverage run --help
    # coverage run -p --source awx/main/tests -m pytest {posargs}
    #py.test -n auto awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests
    #awx-manage check_migrations --dry-run --check  -n 'vNNN_missing_migration_file'
    #make test
    make docker-compose-build
    make docker-compose-runtest

[testenv:ui]
deps =
    nodeenv
commands =
    make clean-ui<commit_msg>pin docker-compose to a working version<commit_after>[tox]
skipsdist = true
envlist =
    api-lint,
    ui-lint,
    api,
    ui,
    swagger,

[testenv]
;basepython = python2.7
whitelist_externals = make
; setenv =
;     DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
;     SWIG_FEATURES = -cpperraswarn -includeall -I/usr/include/openssl
;     HOME = {homedir}
;     USERPROFILE = {homedir}
;     ANSIBLE_VENV_PATH = {toxworkdir}
;     AWX_VENV_PATH = {toxworkdir}
;     SKIP_SLOW_TESTS = True

[testenv:api-lint]
deps =
    -r{toxinidir}/requirements/requirements_dev.txt
    coverage
    coveralls
commands =
    flake8

[testenv:ui-lint]
deps =
    nodeenv
commands =
    make clean-ui
    make ui-devel
    npm run --prefix awx/ui jshint
    npm run --prefix awx/ui lint

[testenv:api]
deps =
    #-r{toxinidir}/requirements/requirements.txt
    #-r{toxinidir}/requirements/requirements_git.txt
    #-r{toxinidir}/requirements/requirements_dev.txt
    #ansible
    #coverage
    #coveralls
; https://github.com/docker/compose/issues/6311
    docker-compose<1.23.0
commands =
    #python setup.py develop
    # coverage run --help
    # coverage run -p --source awx/main/tests -m pytest {posargs}
    #py.test -n auto awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests
    #awx-manage check_migrations --dry-run --check  -n 'vNNN_missing_migration_file'
    #make test
    make docker-compose-build
    make docker-compose-runtest

[testenv:ui]
deps =
    nodeenv
commands =
    make clean-ui
{'fraction_non_alphanumeric': 0.10909701242027527, 'fraction_numerical': 0.004699563611950319, 'mean_word_length': 3.0053763440860215, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6447357', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1129, 'n_words': 215}