forked from drewmullen/vault-kv-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (44 loc) · 1.06 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
[flake8]
# Ignores
# E121: Line continuation not a multiple of 4
# E128: Line continuation not lined up
# E402: Imports can be spaced out
# W503: Making if's readable
ignore = E121,E128,E402,W503,E12,C901
# This project follows the datanav convention for line length.
max-complexity = 10
max-line-length = 120
[tox]
# This means you MUST call pip install -e in your commands for each testenv
# unless you don't actually need the full env (e.g. flake8)
skipsdist = True
envlist = flake8, vault_kv_migration_tests, codecov
[testenv]
basepython = python3.7
basedeps =
pytest-cov
mock
pytest
whitelist_externals =
rm
[testenv:flake8]
deps =
flake8
commands =
flake8 ./tests/unit ./kv_recursive.py
[testenv:vault_kv_migration_tests]
# changedir happens after deps so you need
# full path to reqs
deps = -r ./requirements.txt
{[testenv]basedeps}
commands =
pip install -e .
coverage erase
pytest --cov-report html --cov=kv_recursive tests/
[testenv:codecov]
deps =
codecov
commands =
codecov -e CODECOV_TOKEN
passenv =
CODECOV_TOKEN