Skip to content

Commit

Permalink
move tox to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Dec 21, 2020
1 parent d41555c commit e49fd38
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
42 changes: 42 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,45 @@ exclude_lines =
all-files = true
source-dir = docs/source
build-dir = docs/build

[tox:tox]
envlist =
py3{7,8}-nocov,
py39-{cov,mypy,lint,docs}

[gh-actions]
python =
3.7: py37-nocov
3.8: py38-nocov
3.9: py39-{cov,mypy,lint,docs}

[testenv]
wheel = true
extras = all
passenv = *
usedevelop =
nocov: false
cov: true
deps =
nocov: -r requirements/test.txt
cov: -r requirements/test.txt
commands =
nocov: pytest tests --no-cov {posargs}
cov: pytest tests {posargs}

[testenv:py38-mypy]
deps = -r requirements/mypy.txt
commands = mypy --strict idom

[testenv:py38-lint]
skip_install = true
deps = -r requirements/lint.txt
commands =
black . --check --exclude "idom/client/app/node_modules/.*"
flake8 idom tests docs

[testenv:py38-docs]
deps = -r requirements/docs.txt
commands =
sphinx-build -b html docs/source docs/build
sphinx-build -b doctest docs/source docs/build
42 changes: 0 additions & 42 deletions tox.ini

This file was deleted.

0 comments on commit e49fd38

Please sign in to comment.