-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
42 lines (40 loc) · 1.39 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
[tox]
# Running plain tox will run the default environment (testenv) with the default
# python3 interpreter of the user.
envlist=py3
[testenv]
deps=coverage
pytest
biopython==1.76 # Works with python 3.5
commands =
# Create HTML coverage report for humans and xml coverage report for external services.
coverage run --source=fastqsplitter -m py.test -v tests
coverage html
coverage xml
[testenv:lint]
deps=flake8
flake8-import-order
mypy
commands =
flake8 src tests setup.py
mypy src/fastqsplitter
# 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
# Test if version correctly shows up in documentation
bash -c 'set -eux; grep -r "$(python setup.py --version)" docs/_build/'