Add formatting check option

This commit is contained in:
Serene-Arc
2022-12-03 15:28:53 +10:00
parent c4f636c388
commit 82230a97bc

10
tox.ini
View File

@@ -1,6 +1,7 @@
[tox]
envlist =
format
format_check
[testenv:format]
deps =
@@ -11,6 +12,15 @@ commands =
isort bdfr tests
black bdfr tests --line-length 120
[testenv:format_check]
deps =
isort
black
skip_install = True
commands =
isort bdfr tests --check
black bdfr tests --line-length 120 --check
[isort]
profile = black
multi_line_output = 3