Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ envlist =
flake8
integration
mypy
black
# black - see comments below

[testenv]
passenv = DD_TEST_CLIENT*
Expand Down Expand Up @@ -43,15 +43,18 @@ deps =
flake8==3.7.9
commands = flake8 datadog

[testenv:black]
deps =
black
commands = black --line-length 120 {posargs} datadog
# Black isn't safe to run while support is being maintained for python2.7, but
# can be re-enabled when support for 2.7 is dropped.
#
# [testenv:black]
# deps =
# black
# commands = black --line-length 120 {posargs} datadog

[testenv:mypy]
# Mypy requires Python 3.5 or higher (but it can still type-check Python 2
# Mypy requires Python >= 3.5 and <=3.8 (but it can still type-check Python 2
# code).
basepython = python3
basepython = python3.8
skip_install = true
deps =
mypy==0.770
Expand Down
Loading