-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
34 lines (28 loc) · 767 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
[pytest]
addopts=--tb=short
[tox]
envlist = lint,isort-check,isort-fix,py27,py36
[testenv]
passenv = *
install_command = pip install {opts} {packages}
commands =
py.test --cov-report=term-missing --cov-report=xml --cov-append --cov=inspire_service_orcid {posargs}
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[lint]
deps =
flake8
isort
[testenv:lint]
commands = flake8 inspire_service_orcid tests --exclude=*_local.py
deps = {[lint]deps}
envdir = {toxworkdir}/lint
[testenv:isort-check]
commands = isort -rc -c inspire_service_orcid tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint
[testenv:isort-fix]
commands = isort -rc inspire_service_orcid tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint