-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (35 loc) · 948 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
[tox]
envlist=lint, {py37}-unit
skipsdist=true
[testenv]
setenv = AMPLIUM_CONFIG = config/example.yml
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
nosetests --config=tox.ini amplium test/unit
coverage xml -o reports/coverage.xml
[testenv:lint]
whitelist_externals = npm
basepython=python3.7
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
pylint --rcfile=pylintrc --output-format=colorized amplium test
pycodestyle amplium test
mypy .
# run markdown lint. If this fails then run `remark . -o` to reformat all markdown files
npm install
npm run lint_markdown
[nosetests]
with-coverage=true
cover-package=amplium
cover-inclusive=true
cover-erase=true
cover-min-percentage=80
cover-branches=true
stop=true
detailed-errors=true
verbosity=3
with-xunit=true
xunit-file=reports/nosetests.xml
[pycodestyle]
max_line_length=110
ignore=E402