-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
44 lines (40 loc) · 1.16 KB
/
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
[tox]
envlist = py3
[testenv]
commands =
py.test --cov=array_as_vcf --cov-config=.coveragerc --cov-report=html --cov-report=xml --cov-report=term-missing tests src/array_as_vcf
deps =
pytest
pytest-cov
[testenv:lint]
skip_install=true
commands =
flake8 tests src
deps=
flake8
flake8-import-order
[testenv:twine_check]
deps=build
twine
skip_install=True
commands =
python -m build
twine check dist/*
# Documentation should build on python version 3
[testenv:docs]
deps=-r requirements-docs.txt
whitelist_externals=bash
mkdir
rm
commands=
python --version
# PLACEHOLDER: create _static folder, since we do not have static files in
# our project yet
mkdir -p docs/_static
# Remove docs/_build so all documentation has to be build again
# This is necessary when using --keep-going on sphinx-build
rm -rf docs/_build
# Test if documentation can be build without errors and warnings
# -a rebuilds everything. -W turns warnings into errors.
# --keep-going makes sure we see al the errors that are there in one go.
sphinx-build -a -W -n --keep-going docs docs/_build