<commit_before>[tox]
isolated_build = true
minversion = 2.0
skip_missing_interpreters = true
envlist =
    py{27,38}
    bench

[testenv]
install_command = python -m pip install --extra-index-url https://datadoghq.dev/ci-wheels/bin {opts} {packages}
ensure_default_envdir = true
envdir =
    py27: {toxworkdir}/py27
    py38: {toxworkdir}/py38
dd_check_style = true
dd_check_types = true
dd_mypy_args =
    --py2
    --check-untyped-defs
    --follow-imports silent
    datadog_checks/base/checks/base.py
    datadog_checks/base/checks/win/wmi/__init__.py
    datadog_checks/base/checks/win/winpdh_base.py
usedevelop = true
extras =
    db
    deps
    http
    json
    kube
deps =
    -e../datadog_checks_tests_helper
    -rrequirements-dev.txt
passenv =
    DOCKER*
    COMPOSE*
    APPVEYOR*
commands =
    pytest -v {posargs} --benchmark-skip
setenv =
    LEGACY_DOCKER_COMPOSE = true
    ; OpenmetricsChecks sending generic tags
    DDEV_SKIP_GENERIC_TAGS_CHECK=true

[testenv:bench]
basepython = python3.8

commands =
    pytest -v {posargs} --benchmark-only --benchmark-max-time=10.0<commit_msg>remove legacy compose (#12626)<commit_after>[tox]
isolated_build = true
minversion = 2.0
skip_missing_interpreters = true
envlist =
    py{27,38}
    bench

[testenv]
install_command = python -m pip install --extra-index-url https://datadoghq.dev/ci-wheels/bin {opts} {packages}
ensure_default_envdir = true
envdir =
    py27: {toxworkdir}/py27
    py38: {toxworkdir}/py38
dd_check_style = true
dd_check_types = true
dd_mypy_args =
    --py2
    --check-untyped-defs
    --follow-imports silent
    datadog_checks/base/checks/base.py
    datadog_checks/base/checks/win/wmi/__init__.py
    datadog_checks/base/checks/win/winpdh_base.py
usedevelop = true
extras =
    db
    deps
    http
    json
    kube
deps =
    -e../datadog_checks_tests_helper
    -rrequirements-dev.txt
passenv =
    DOCKER*
    COMPOSE*
    APPVEYOR*
commands =
    pytest -v {posargs} --benchmark-skip
setenv =
    ; OpenmetricsChecks sending generic tags
    DDEV_SKIP_GENERIC_TAGS_CHECK=true

[testenv:bench]
basepython = python3.8

commands =
    pytest -v {posargs} --benchmark-only --benchmark-max-time=10.0
{'fraction_non_alphanumeric': 0.10319634703196347, 'fraction_numerical': 0.02054794520547945, 'mean_word_length': 3.287671232876712, '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': '6583299', 'n_tokens_mistral': 888, 'n_tokens_neox': 837, 'n_words': 152}