Add formatting check option
This commit is contained in:
parent
c4f636c388
commit
82230a97bc
1 changed files with 10 additions and 0 deletions
10
tox.ini
10
tox.ini
|
@ -1,6 +1,7 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
format
|
format
|
||||||
|
format_check
|
||||||
|
|
||||||
[testenv:format]
|
[testenv:format]
|
||||||
deps =
|
deps =
|
||||||
|
@ -11,6 +12,15 @@ commands =
|
||||||
isort bdfr tests
|
isort bdfr tests
|
||||||
black bdfr tests --line-length 120
|
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]
|
[isort]
|
||||||
profile = black
|
profile = black
|
||||||
multi_line_output = 3
|
multi_line_output = 3
|
||||||
|
|
Loading…
Reference in a new issue