Skip to content

Commit 2e1399b

Browse files
committed
suggestion: add black-format to tox
This commit adds a `black-format` command to `tox` which allows IIB code to be automatically formatted whenever required by running ``` tox -e black-format ``` The goal is to reduce the manual burden of formatting code. Signed-off-by: Jonathan Gangi <[email protected]>
1 parent ababfba commit 2e1399b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ deps =
3737
commands =
3838
black --check --diff iib tests
3939

40+
[testenv:black-format]
41+
description = black format command
42+
skip_install = true
43+
deps =
44+
black==22.3.0
45+
commands =
46+
black iib tests
47+
4048
[testenv:docs]
4149
description = build docs [Mandatory]
4250
skip_install = true

0 commit comments

Comments
 (0)