-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
29 lines (24 loc) · 666 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
[flake8]
ignore = E125
[isort]
known_first_party=neural_sources
[tox]
requires = tox>=4
env_list = lint, type, py{37,310}
[testenv]
description = run unit tests
deps = -r{toxinidir}/test-requirements.txt
skip_install = true
setenv = PYTHONPATH=.
commands = pytest --cov=neural_sources --cov-fail-under=100 {posargs:test/python}
[testenv:lint]
description = run linters
deps = -r{toxinidir}/test-requirements.txt
skip_install = true
commands = flake8 {posargs:neural_sources test/python}
[testenv:type]
description = run type checks
deps = -r{toxinidir}/test-requirements.txt
skip_install = true
setenv = PYTHONPATH=.
commands = pyright {postarg:neural_sources}