[tox]
envlist =
    lint
    py36-django111
    py{36,37}-django21
    py{36,37}-django22
    py{36,37,38}-django30
    py{38}-djangomain

[testenv]
commands = {envpython} -Wa -b -m coverage run -m django test --settings=tests.settings
deps =
    django111: Django>=1.11,<2.0
    django21: Django>=2.1,<2.2
    django22: Django>=2.2,<2.3
    django30: Django>=3.0,<3.1
    djangomain: https://github.com/django/django/archive/main.tar.gz
    coverage

[testenv:lint]
basepython = python3
commands =
    black --target-version py36 --check --diff .
    flake8
    isort --check-only --diff
    {envpython} -m django check --settings=tests.settings
    {envpython} -m django makemigrations --settings=tests.settings --no-input --dry-run --check
deps =
    black
    flake8
    isort

[tox]
envlist =
    lint
    py36-django111
    py{36,37}-django21
    py{36,37}-django22
    py{36,37,38}-django30
    py{38}-djangomain

[testenv]
commands = {envpython} -Wa -b -m coverage run -m django test --settings=tests.settings
deps =
    django111: Django>=1.11,<2.0
    django21: Django>=2.1,<2.2
    django22: Django>=2.2,<2.3
    django30: Django>=3.0,<3.1
    djangomain: https://github.com/django/django/archive/main.tar.gz
    coverage

[testenv:lint]
basepython = python3
commands =
    black --target-version py36 --check --diff .
    flake8
    isort --check-only --diff .
    {envpython} -m django check --settings=tests.settings
    {envpython} -m django makemigrations --settings=tests.settings --no-input --dry-run --check
deps =
    black
    flake8
    isort>=5.0.2

Upgrade isort command to isort>=5
Upgrade isort command to isort>=5

Minimum version set to 5.0.2 to use complete Black profile.
