-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
632de39
commit c673046
Showing
4 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[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 | ||
|
||
# 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 | ||
|
||
[testenv] | ||
basepython = python3.6 | ||
basedeps = | ||
pytest-cov | ||
mock | ||
pytest | ||
whitelist_externals = | ||
rm | ||
|
||
[testenv:flake8] | ||
deps = | ||
flake8 | ||
commands = | ||
flake8 ./tests/unit | ||
|
||
[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 | ||
py.test --cov-report=term-missing ./tests/unit |