File: tox.ini

package info (click to toggle)
python-marathon 0.13.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: python: 1,969; makefile: 185; sh: 58
file content (42 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (4)
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
[tox]
passenv = TRAVIS
usedevelop=True
envlist={test,itest}-{py36,py37},pep8

[testenv]
passenv = TRAVIS MARATHONVERSION DOCKER_HOST DOCKER_TLS_VERIFY DOCKER_CERT_PATH DOCKER_MACHINE_NAME
basepython =
    py36: python3.6
    py37: python3.7
whitelist_externals=/bin/bash
skipsdist=True
changedir =
  test: {toxinidir}
  itest: {toxinidir}/itests/
deps =
    -rrequirements.txt
    requests-mock==1.0.0
    docker-compose
    behave
    pytest
    mock
commands =
    test: py.test -s -vv {posargs:tests}
    itest: ./itest.sh {posargs}

[testenv:pep8]
basepython = python3.6
deps = flake8
commands = flake8 .

[flake8]
exclude = .tox,*.egg,docs,build,__init__.py
max-line-length = 160

[testenv:pre-commit]
basepython = python3.7
deps =
    pre-commit>=1.20.0
commands =
    pre-commit install -f --install-hooks
    pre-commit run --all-files