summaryrefslogtreecommitdiff
path: root/tox.ini
blob: b6b0537d9bcdc94cf86cc7f4f35a1858c36d5241 (plain)
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
[tox]
envlist = py35,py36,py37,py38
skip_missing_interpreters = True
skipsdist = True
minversion = 3.14.1

[testenv]
usedevelop = True
deps = -rtest_requirements.txt
whitelist_externals = 
    find
    sh
passenv = COVERAGE_FILE
commands =
    pytest {posargs}
    py36,py37,py38: black --check .
    isort --recursive --check-only --settings-path setup.cfg .
    flake8 borgmatic tests

[testenv:black]
commands =
    black {posargs} .

[testenv:test]
commands =
    pytest {posargs}

[testenv:end-to-end]
deps = -rtest_requirements.txt
passenv = COVERAGE_FILE
commands =
    pytest {posargs} --no-cov tests/end-to-end

[testenv:isort]
deps = {[testenv]deps}
commands =
    isort {posargs:--recursive} --settings-path setup.cfg .