forked from fga-eps-mds/MeasureSoftGram-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (38 loc) · 865 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]
# Tell tox to not require a setup.py file
skipsdist = True
envlist = test_core, lint
[testenv]
install_command = pip install {opts} {packages}
[testenv:test_core]
description = run unit tests
envdir = {toxworkdir}/test_core
deps =
pytest
requests
pytest-cov
pytest-mock
coverage
-r requirements.txt
setenv =
PYTHONPATH=src
commands =
coverage erase
coverage run -m --source=./src pytest tests {posargs} --junitxml=./junit.xml -vv
coverage xml -o coverage.xml
coverage report --show-missing
[coverage:run]
omit =
**/__init__.py
src/staticfiles/**
[testenv:lint]
description = run linters
deps =
black
flake8
# nbqa
commands =
black {posargs:src} {posargs:tests}
# nbqa black {posargs:notebook}
flake8 {posargs:src} {posargs:tests}
# nbqa flake8 {posargs:notebook}