Skip to content

Commit e49fd38

Browse files
committed
move tox to setup.cfg
1 parent d41555c commit e49fd38

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

setup.cfg

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,45 @@ exclude_lines =
3636
all-files = true
3737
source-dir = docs/source
3838
build-dir = docs/build
39+
40+
[tox:tox]
41+
envlist =
42+
py3{7,8}-nocov,
43+
py39-{cov,mypy,lint,docs}
44+
45+
[gh-actions]
46+
python =
47+
3.7: py37-nocov
48+
3.8: py38-nocov
49+
3.9: py39-{cov,mypy,lint,docs}
50+
51+
[testenv]
52+
wheel = true
53+
extras = all
54+
passenv = *
55+
usedevelop =
56+
nocov: false
57+
cov: true
58+
deps =
59+
nocov: -r requirements/test.txt
60+
cov: -r requirements/test.txt
61+
commands =
62+
nocov: pytest tests --no-cov {posargs}
63+
cov: pytest tests {posargs}
64+
65+
[testenv:py38-mypy]
66+
deps = -r requirements/mypy.txt
67+
commands = mypy --strict idom
68+
69+
[testenv:py38-lint]
70+
skip_install = true
71+
deps = -r requirements/lint.txt
72+
commands =
73+
black . --check --exclude "idom/client/app/node_modules/.*"
74+
flake8 idom tests docs
75+
76+
[testenv:py38-docs]
77+
deps = -r requirements/docs.txt
78+
commands =
79+
sphinx-build -b html docs/source docs/build
80+
sphinx-build -b doctest docs/source docs/build

tox.ini

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)