Skip to content

Commit 36c796f

Browse files
committed
Added black, mypy and pyright to tox list
1 parent 7ff98d7 commit 36c796f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tox.ini

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37, py38, py39, py310, pypy3, flake8, docs
2+
envlist = py37, py38, py39, py310, pypy3, flake8, docs, black, mypy, pyright
33
skip_missing_interpreters = True
44

55
[testenv]
@@ -21,12 +21,23 @@ basepython = python3
2121
deps = flake8
2222
commands = flake8 {toxinidir}/progressbar {toxinidir}/tests {toxinidir}/examples.py
2323

24+
[testenv:mypy]
25+
changedir =
26+
basepython = python3
27+
deps = mypy
28+
commands = mypy {toxinidir}/progressbar
29+
2430
[testenv:pyright]
2531
changedir =
2632
basepython = python3
2733
deps = pyright
2834
commands = pyright {toxinidir}/progressbar
2935

36+
[testenv:black]
37+
basepython = python3
38+
deps = black
39+
commands = black --skip-string-normalization --line-length 79 {toxinidir}/progressbar
40+
3041
[testenv:docs]
3142
changedir =
3243
basepython = python3

0 commit comments

Comments
 (0)