Skip to content

Commit bf6b8c3

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
tox.ini: add a rule to reformat source code
Add a tox environment that runs black to format the code rather than just checking it. This environment is not run automatically but it provided for developers as a means to format the code in a way that is consistent with this project's configuration. Signed-off-by: John Mulligan <[email protected]>
1 parent 23c6402 commit bf6b8c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ deps =
5959
commands =
6060
black --check -v --extend-exclude sambacc/grpc/generated .
6161

62+
[testenv:reformat]
63+
description = Reformat the source files using black
64+
deps = {[testenv:formatting]deps}
65+
commands =
66+
black -q --extend-exclude sambacc/grpc/generated .
67+
6268
[testenv:flake8]
6369
description = Basic python linting for the source files
6470
deps =

0 commit comments

Comments
 (0)