mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +02:00
Using one job for all linting and doc generation
Requirements for doc are now an extra require in setup.cfg
This commit is contained in:
parent
43ee61afe8
commit
45f4d8f8b0
4 changed files with 12 additions and 16 deletions
|
@ -195,7 +195,7 @@ its source is located inside the `docs folder
|
||||||
|
|
||||||
Install doc dependencies (within the virtual environment, if any)::
|
Install doc dependencies (within the virtual environment, if any)::
|
||||||
|
|
||||||
pip install -r docs/requirements.txt
|
pip install -e .[doc]
|
||||||
|
|
||||||
And to produce a HTML doc in the `docs/_output` folder::
|
And to produce a HTML doc in the `docs/_output` folder::
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
Sphinx==3.5.3
|
|
||||||
docutils==0.17.1
|
|
|
@ -53,6 +53,10 @@ dev =
|
||||||
tox>=3.14.6
|
tox>=3.14.6
|
||||||
zest.releaser>=6.20.1
|
zest.releaser>=6.20.1
|
||||||
|
|
||||||
|
doc =
|
||||||
|
Sphinx==3.5.3
|
||||||
|
docutils==0.17.1
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
ihatemoney = ihatemoney.manage:main
|
ihatemoney = ihatemoney.manage:main
|
||||||
|
|
20
tox.ini
20
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py39,py38,py37,py36,docs,flake8,black
|
envlist = py39,py38,py37,py36,lint_docs
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -14,20 +14,14 @@ deps =
|
||||||
# To be sure we are importing ihatemoney pkg from pip-installed version
|
# To be sure we are importing ihatemoney pkg from pip-installed version
|
||||||
changedir = /tmp
|
changedir = /tmp
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:lint_docs]
|
||||||
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
|
|
||||||
deps =
|
|
||||||
-rdocs/requirements.txt
|
|
||||||
changedir = {toxinidir}
|
|
||||||
|
|
||||||
[testenv:black]
|
|
||||||
commands =
|
commands =
|
||||||
black --check --target-version=py36 .
|
black --check --target-version=py36 .
|
||||||
isort -c .
|
isort -c .
|
||||||
changedir = {toxinidir}
|
flake8 ihatemoney
|
||||||
|
sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
|
||||||
[testenv:flake8]
|
deps =
|
||||||
commands = flake8 ihatemoney
|
-e.[dev,doc]
|
||||||
changedir = {toxinidir}
|
changedir = {toxinidir}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
@ -41,5 +35,5 @@ extend-ignore =
|
||||||
python =
|
python =
|
||||||
3.6: py36
|
3.6: py36
|
||||||
3.7: py37
|
3.7: py37
|
||||||
3.8: py38, docs, black, flake8
|
3.8: py38, lint_docs
|
||||||
3.9: py39
|
3.9: py39
|
||||||
|
|
Loading…
Reference in a new issue