<commit_before>[tox]
minversion = 2.0
basepython = py27
envlist =
    {93,94,95,96,10,11}-{psycopg2,pg8000}
    unit
    flake8

[testenv]
usedevelop = true
platform = linux|darwin|win32
passenv =
    DOCKER*
    COMPOSE*
deps =
    -e../datadog_checks_base[deps]
    -rrequirements-dev.txt
commands =
    pip install -r requirements.in
    pytest -v -m"integration"
setenv =
    psycopg2: use_psycopg2=true
    93: POSTGRES_VERSION=9.3
    94: POSTGRES_VERSION=9.4
    95: POSTGRES_VERSION=9.5
    96: POSTGRES_VERSION=9.6
    10: POSTGRES_VERSION=10
    11: POSTGRES_VERSION=11

[testenv:11-psycopg2]
basepython = python3.6

[testenv:unit]
commands =
    pip install -r requirements.in
    pytest -v -m"unit"

[testenv:flake8]
skip_install = true
deps = flake8
commands = flake8 .

[flake8]
exclude = .eggs,.tox
max-line-length = 120<commit_msg>tox postgres (#3201)<commit_after>[tox]
minversion = 2.0
basepython = py36
envlist =
    py{27,36}-{93,94,95,96,10,11}-pg8000
    py{27,36}-unit
    py36-11-psycopg2
    flake8

[testenv]
usedevelop = true
platform = linux|darwin|win32
passenv =
    DOCKER*
    COMPOSE*
deps =
    -e../datadog_checks_base[deps]
    -rrequirements-dev.txt
commands =
    pip install -r requirements.in
    {93,94,95,96,10,11}: pytest -v -m"integration"
setenv =
    psycopg2: use_psycopg2=true
    93: POSTGRES_VERSION=9.3
    94: POSTGRES_VERSION=9.4
    95: POSTGRES_VERSION=9.5
    96: POSTGRES_VERSION=9.6
    10: POSTGRES_VERSION=10
    11: POSTGRES_VERSION=11

[testenv:unit]
commands =
    pip install -r requirements.in
    unit: pytest -v -m"unit"

[testenv:flake8]
skip_install = true
deps = flake8
commands = flake8 .

[flake8]
exclude = .eggs,.tox,build
max-line-length = 120
{'fraction_non_alphanumeric': 0.1210710128055879, 'fraction_numerical': 0.08556461001164144, 'mean_word_length': 3.4882506527415145, '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': '4285957', 'n_tokens_mistral': 804, 'n_tokens_neox': 715, 'n_words': 135}