-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
77 lines (68 loc) · 1.78 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
flake8, mypy, pylint, black, tilescope
py{38,39,310,311},
pypy{38,39}
[default]
basepython=python3.10
[testenv]
description = run test
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
pypy3.8: pypy3.8
pypy3.9: pypy3.9
deps =
pytest==7.2.0
pytest-repeat==0.9.1
docutils==0.19
Pygments==2.13.0
commands = pytest
[pytest]
addopts = --doctest-modules --doctest-ignore-import-errors
testpaths = tests comb_spec_searcher test_readme.txt example.py
markers = slow: marks tests as slow (deselect with '-m "not slow"')
[testenv:tilescope]
description = run tilescope test
basepython = {[default]basepython}
allowlist_externals=sh
commands_pre =
sh setup_tilescope_test.sh
commands =
pytest .tilings/tests
[testenv:flake8]
description = run flake8 (linter)
basepython = {[default]basepython}
skip_install = True
deps =
flake8==5.0.4
flake8-isort==5.0.0
commands =
flake8 --isort-show-traceback comb_spec_searcher tests setup.py example.py
[testenv:pylint]
description = run pylint (static code analysis)
basepython = {[default]basepython}
deps =
pylint==2.15.5
commands = pylint comb_spec_searcher
[testenv:mypy]
description = run mypy (static type checker)
basepython = {[default]basepython}
deps =
mypy==0.990
types-requests==2.28.11.4
types-tabulate==0.9.0
commands =
mypy
[testenv:black]
description = check that comply with autoformating
basepython = {[default]basepython}
deps =
black==22.10.0
commands = black --check --diff .