-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
53 lines (46 loc) · 1.01 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
[tox]
minversion = 2.7
envlist = dev,lint,py37,py36,py35
[testenv]
deps =
coverage
mock
pretend
mock
pytest
commands =
coverage run --source pyokta_aws -m pytest {posargs:tests}
coverage report -m
[testenv:lint-code-style]
deps =
flake8
commands =
flake8 pyokta_aws/ tests/
[testenv:lint-dist-meta]
deps =
check-manifest
commands =
check-manifest -v --ignore assets,assets/*
python setup.py sdist
[testenv:lint-mypy]
deps =
mypy
commands =
mypy --ignore-missing-imports --follow-imports=skip pyokta_aws/ tests/
[testenv:lint]
deps =
{[testenv:lint-code-style]deps}
{[testenv:lint-dist-meta]deps}
{[testenv:lint-mypy]deps}
commands =
{[testenv:lint-code-style]commands}
{[testenv:lint-dist-meta]commands}
{[testenv:lint-mypy]commands}
[testenv:dev]
deps = -r{toxinidir}/requirements.txt
# Need to recreate every time as tox doesn't track dependency changes >=|
recreate = True
commands =
[flake8]
max-line-length = 100
exclude = env,__pycache__,.tox