-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
82 lines (66 loc) · 1.65 KB
/
tox.ini
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[tox]
envlist = py37,py38
[flake8]
exclude = venv
ignore = E501, D105, D107, E731
[pytest-watch]
nobeep = True
[testenv:test-py38]
deps =
pytest
basepython = python3.8
commands =
pytest {posargs}
[testenv:test-py37]
deps =
pytest
basepython = python3.7
commands =
pytest {posargs}
[testenv:watch]
deps =
pytest
pytest-watch
basepython = python3.8
commands =
ptw --nobeep . -- {posargs}
[testenv:examples]
basepython = python3.8
commands =
pip install -U {toxinidir}
python {toxinidir}/examples/integer_regression.py
python {toxinidir}/examples/iris.py
python {toxinidir}/examples/leaky_relu.py
python {toxinidir}/examples/odd.py
python {toxinidir}/examples/point_distance.py
python {toxinidir}/examples/rectangle_area.py
python {toxinidir}/examples/string_demo.py
python {toxinidir}/examples/string_demo_annealing.py
python {toxinidir}/examples/triple.py
python {toxinidir}/examples/software_synthesis/mirror_image.py
python {toxinidir}/examples/software_synthesis/replace_space_with_newline.py
[testenv:flake8]
deps =
flake8 >= 3.5.0
flake8-docstrings >= 1.3.0
basepython = python3.8
ignore_errors = true
commands =
flake8 {toxinidir}/pyshgp
flake8 {toxinidir}/examples
[testenv:docs]
deps =
sphinx >= 3.0.3
m2r >= 0.2.1
mkdocs-nature >= 0.3.1
basepython = python3.8
commands =
sphinx-build -M html "{toxinidir}/docs_source/source" "{toxinidir}/docs/" {posargs}
python -c 'print("documentation available under {toxinidir}/docs/index.html")'
[testenv:build]
deps =
setuptools
wheel
basepython = python3.8
commands =
python setup.py sdist bdist_wheel