forked from raphael-group/NAIBR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (40 loc) · 861 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
42
43
44
45
46
47
[tox]
envlist = flake8,black,mypy,py37,py38,py39,py310
isolated_build = True
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
pytest
coverage
commands =
coverage run -m pytest
coverage combine -q
coverage report --ignore-errors
coverage xml
[testenv:mypy]
basepython = python3.9
deps = mypy
commands =
mypy --install-types --non-interactive src/ scripts/
[testenv:flake8]
basepython = python3.9
deps = flake8
commands = flake8 src/ tests/ scripts/
[testenv:black]
basepython = python3.9
deps = black==22.3.0
skip_install = true
commands = black --check src/ tests/ scripts/
[flake8]
max-line-length = 110
extend_ignore = E203, E731
[coverage:run]
branch = True
parallel = True
concurrency = multiprocessing
source_pkgs = naibr
source = tests
[coverage:paths]
source =
src/
scripts/