-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (35 loc) · 970 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
[tox]
envlist = lint,py37,coverage-report
isolated_build = True
skipsdist = True
[testenv]
commands = python -m pytest {posargs}
deps =
-rrequirements.txt
pytest
pytest-mock
[testenv:lint]
basepython = python3.7
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files
[testenv:coverage-report]
basepython = python3.7
commands = pytest --cov-report term-missing --cov=pubmed_es
[flake8]
max_line_length = 88
ignore = E501,W503
[coverage:report]
# Adapted from https://coverage.readthedocs.io/en/latest/config.html#syntax
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
[pytest]
markers =
integration: integration tests using Elasticsearch