# HG changeset patch # User Laurent Peuch <cortex@worlddomination.be> # Date 1673066883 -3600 # Sat Jan 07 05:48:03 2023 +0100 # Node ID 31f57d30b5e3f6916947adc6ef2658843b88741e # Parent dfcc55c045ad9c6fdad9165816fd193056ca3467 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 = @@ -54,3 +54,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