forked from cooper-org/cooper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (36 loc) · 908 Bytes
/
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
[tox]
minversion = 3.8.0
envlist = py{37,38,39}-torch{18, 19, 110}-{linux,macos,windows}, lint, mypy
isolated_build = true
[gh-actions]
python =
3.7: py37
3.8: py38, lint, mypy
3.9: py39
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
setenv =
PYTHONPATH = {toxinidir}
extras = tests
whitelist_externals = pytest
deps =
torch18: torch >= 1.8.0, < 1.9.0
torch19: torch >= 1.9.0, < 1.10.0
torch110: torch >= 1.10.0, < 1.11.0
commands =
pytest --basetemp={envtmpdir}
[testenv:lint]
basepython = python3.8
extras = dev
commands =
flake8 --ignore=E203,E266,E501 cooper --count --exit-zero --max-doc-length=80 --max-line-length=88 --per-file-ignores=__init__.py:F401 --statistics
black --check --diff .
isort cooper
isort tutorials
[testenv:mypy]
basepython = python3.8
commands = mypy cooper