-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (39 loc) · 840 Bytes
/
tox.ini
File metadata and controls
43 lines (39 loc) · 840 Bytes
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 = py37,py38,pypy3,pre-commit
isolated_build = True
[testenv]
deps = -rrequirements-dev.txt
passenv =
APPDATA
HOME
LOCALAPPDATA
PROGRAMFILES
RUSTUP_HOME
LC_ALL
PIP_*
PYTEST_*
XDG_CACHE_HOME
PRE_COMMIT_HOME
commands =
coverage erase
coverage run -m pytest
coverage report
coverage xml -o {toxworkdir}/coverage.{envname}.xml -i
[testenv:before-commit]
passenv =
XDG_CACHE_HOME
PRE_COMMIT_HOME
SKIP
skip_install = true
deps = before_commit
commands = {envpython} -m before_commit run --all-files --show-diff-on-failure
[pep8]
ignore = E265,E501,W504
[pytest]
env =
GIT_AUTHOR_NAME=test
GIT_COMMITTER_NAME=test
GIT_AUTHOR_EMAIL[email protected]
GIT_COMMITTER_EMAIL[email protected]
VIRTUALENV_NO_DOWNLOAD=1
PRE_COMMIT_NO_CONCURRENCY=1