-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
65 lines (58 loc) · 1.43 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
[tox]
minversion = 3.18.0
skip_missing_interpreters = True
envlist =
py37-npy{115,121}
py38-npy{118,121}
py39-npy{120,121}
py310-npy{121,122}
py311-npy{123,124}
pypy37
pypy38
pypy39
[shmem]
run = {env:OSHRUN:oshrun}
[testenv:test]
deps =
cffi>=1.13
npy115: numpy==1.15.*
npy118: numpy==1.18.*
npy120: numpy==1.20.*
npy121: numpy==1.21.*
npy122: numpy==1.22.*
npy123: numpy==1.23.*
npy123: numpy==1.24.*
pypy37: numpy>=1.12.*
pypy38: numpy>=1.12.*
pypy39: numpy>=1.12.*
allowlist_externals = {[shmem]run}
changedir = {toxinidir}/test
commands =
{[shmem]run} -n 1 {envpython} -m shmem4py --version
{[shmem]run} -n 1 {envpython} -m unittest discover []
{[shmem]run} -n 2 {envpython} -m unittest discover -f []
[testenv:lint]
deps =
pycodestyle
pydocstyle
flake8
pylint
commands =
pycodestyle src/shmem4py
#pydocstyle src/shmem4py
flake8 src/shmem4py
pylint shmem4py
[testenv:type]
deps =
mypy
commands =
mypy --python-version 3.8 -p shmem4py
mypy --python-version 3.9 -p shmem4py
mypy --python-version 3.10 -p shmem4py
mypy --python-version 3.11 -p shmem4py
mypy --python-version 3.12 -p shmem4py
mypy --python-version 3.8 demo test
mypy --python-version 3.9 demo test
mypy --python-version 3.10 demo test
mypy --python-version 3.11 demo test
mypy --python-version 3.12 demo test