This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
69 lines (63 loc) · 1.56 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
58
59
60
61
62
63
64
65
66
67
68
69
[tox]
envlist = py{27,34,35,36}-local
[testenv]
usedevelop = true
passenv =
# Identifies AWS KMS key id to use in integration tests
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID \
# Pass through AWS credentials
AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
setenv =
AWS_DEFAULT_REGION = us-east-1
commands =
local: pytest -l --cov=mrcrypt --cov-report=term --cov-report=xml -m local {posargs}
integ: pytest -l --cov=mrcrypt --cov-report=term --cov-report=xml -m integ {posargs}
all: pytest -l --cov=mrcrypt --cov-report=term --cov-report=xml {posargs}
deps =
pytest
pytest-cov
mock
git+https://github.com/austinmoore-/moto.git@405d8c63b4b735a41aa4938675506fe40517bfa3#egg=moto
[travis]
python =
2.7: py27-local
3.4: py34-local
3.5: py35-local
3.6: py36-local
# Linters
[testenv:flake8]
basepython = python3
deps =
flake8
flake8-docstrings
flake8-import-order
commands =
flake8 \
mrcrypt/ \
setup.py
[testenv:flake8-tests]
basepython = {[testenv:flake8]basepython}
deps = {[testenv:flake8]deps}
commands =
flake8 \
# Ignore D100, D103 docstring requirements for tests
--ignore D100,D103 \
tests/
[testenv:pylint]
basepython = python3
deps =
{[testenv]deps}
pyflakes
pylint
commands =
pylint \
--rcfile=pylintrc \
mrcrypt/ \
setup.py
[testenv:pylint-tests]
basepython = {[testenv:pylint]basepython}
deps = {[testenv:pylint]deps}
commands =
pylint \
--rcfile=tests/pylintrc \
tests/