# HG changeset patch # User Laurent Peuch <cortex@worlddomination.be> # Date 1673066720 -3600 # Sat Jan 07 05:45:20 2023 +0100 # Node ID 495aa83683c6c28d51715ab5424a2f1377d4b066 # Parent 252c36db1f4c062649ad26a81645efa4f409e57d chore(tox): add black and black-run commands diff --git a/tox.ini b/tox.ini --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3,flake8,check-manifest,yamllint +envlist = py3,flake8,check-manifest,yamllint,black [testenv] deps = @@ -53,3 +53,17 @@ deps = yamllint commands = yamllint . + +[testenv:black] +basepython = python3 +skip_install = true +deps = + black >= 22.12 +commands = black --check . + +[testenv:black-run] +basepython = python3 +skip_install = true +deps = + black >= 22.12 +commands = black . \ No newline at end of file