-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (37 loc) · 1.1 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
[flake8]
max-line-length = 88
extend-ignore = E501, E203
[tox]
envlist = lint, py{36}, pre-commit-cpp
# Define the minimal tox version required to run;
# if the host tox is less than this the tool with create an environment and
# provision it with a tox that satisfies it under provision_tox_env.
# At least this version is needed for PEP 517/518 support.
minversion = 3.3.0
# Activate isolated build environment. tox will use a virtual environment
# to build a source distribution from the source tree. For build tools and
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
isolated_build = true
[testenv:lint]
usedevelop = False
deps =
black >= 19.3b0
flake8 >= 3.6
pip_version = pip>=20.0.1
commands =
flake8 .
black --check .
[testenv]
usedevelop = True
deps = -rrequirements-dev.txt
pip_version = pip>=20.0.1
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --fail-under 85
[testenv:pre-commit-cpp]
usedevelop = False
skip_install = true
whitelist_externals = /bin/sh
deps = pre-commit
commands = /bin/sh tests/test_pre_commit.sh