-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (28 loc) · 674 Bytes
/
tox.ini
File metadata and controls
33 lines (28 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[tox]
envlist = py36,py37,py38,flake8,flake8-doc,isort,black
[testenv]
usedevelop = true
deps = pytest==5.3.2
changedir = tests
commands = pytest
[testenv:flake8]
usedevelop = true
deps = flake8==3.7.9
changedir = {toxinidir}
commands = flake8 d2lib/ tests/ setup.py
[testenv:flake8-doc]
usedevelop = true
deps = flake8-docstrings==1.5.0
changedir = {toxinidir}
commands = flake8 d2lib/
[testenv:isort]
usedevelop = true
deps = isort==4.3.21
changedir = {toxinidir}
commands = isort -y -sg .tox/* -sg venv/*
[testenv:black]
usedevelop = true
deps = black==19.10b0
ignore_outcome = true
changedir = {toxinidir}
commands = black --config=.black.cfg d2lib/ tests/ setup.py