-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
57 lines (43 loc) · 1.64 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
45
46
47
48
49
50
51
52
53
54
55
56
57
; Tox configuration file - http://tox.readthedocs.io/en/latest/config.html
[tox]
envlist = py{38},flake8
[testenv]
; Configuration to put in all test environments (unless overridden)
;
; Install pm4ngs, its test dependencies, and
; teamcity-messages (so it can tell TC which tests passed).
deps =
-rrequirements/test.txt
; Coverage options are not in `addopts` because PyCharm doesn't stop on breakpoints inside tests
commands = py.test {posargs:--cov gtax --cov tests --cov-report term-missing --cov-report html --cov-report xml:coverage.xml}
; usedevelop: if true, use `setup.py develop` to install pm4ngs
; inside Tox's test environment. If false, use `setup.py install`.
;
; Set `usedevelop = True` if you want your tests to run faster.
;
; Set `usedevelop = False` if your tests rely on data files or executable
; binaries being installed correctly, or if your package is a namespace package
; (like ncbi.*) AND it uses another package in the same namespace.
usedevelop = True
; If your application needs some external configuration values in environment
; variables, uncomment these lines and list the variables here, separated by
; whitespace, wildcards work:
;passenv =
; MY_DATABASE_URL
[testenv:flake8]
; Flake8 test environment, don't install the package or its deps, instead just
; install & run flake8.
skip_install = True
deps = flake8
commands = flake8 src/ tests/
; This should correspond to the lowest Python interpreter version supported by the package
basepython = python3.8
[pytest]
doctest_optionflags = ELLIPSIS
testpaths = tests/
[flake8]
max-line-length = 99
count = True
statistics = True
show-source = True
max-complexity = 10