-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (37 loc) · 918 Bytes
/
tox.ini
File metadata and controls
44 lines (37 loc) · 918 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
34
35
36
37
38
39
40
41
42
43
44
[tox]
envlist = py36, flake8, docs
[flake8]
max-line-length = 120
max-complexity = 10
[travis]
python =
3.6: py36
[testenv:flake8]
basepython = python
commands =
{[testenv]deps}
pipenv install --dev
pipenv run pip install -e .
pipenv run flake8 --version
pipenv run flake8 db_tools
[testenv:docs]
basepython = python
changedir = docs
commands =
{[testenv]deps}
pipenv install --dev
pipenv run pip install -e .
pipenv run flake8 --version
pipenv run sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps = pipenv
commands =
pipenv install --dev
pipenv run pip install -e .
pipenv run pytest
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt