From 45f4d8f8b0b02038cde53f52122b61fe4bdc1da8 Mon Sep 17 00:00:00 2001 From: Glandos Date: Thu, 3 Jun 2021 22:29:55 +0200 Subject: Using one job for all linting and doc generation Requirements for doc are now an extra require in setup.cfg --- tox.ini | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index cbdaf80..c358574 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39,py38,py37,py36,docs,flake8,black +envlist = py39,py38,py37,py36,lint_docs skip_missing_interpreters = True [testenv] @@ -14,20 +14,14 @@ deps = # To be sure we are importing ihatemoney pkg from pip-installed version changedir = /tmp -[testenv:docs] -commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html -deps = - -rdocs/requirements.txt -changedir = {toxinidir} - -[testenv:black] +[testenv:lint_docs] commands = black --check --target-version=py36 . isort -c . -changedir = {toxinidir} - -[testenv:flake8] -commands = flake8 ihatemoney + flake8 ihatemoney + sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html +deps = + -e.[dev,doc] changedir = {toxinidir} [flake8] @@ -41,5 +35,5 @@ extend-ignore = python = 3.6: py36 3.7: py37 - 3.8: py38, docs, black, flake8 + 3.8: py38, lint_docs 3.9: py39 -- cgit v1.1