-
Notifications
You must be signed in to change notification settings - Fork 146
/
tox.ini
38 lines (33 loc) · 1003 Bytes
/
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
[tox]
envlist = py37,py36,black
skipsdist = False
usedevelop = True
[testenv]
whitelist_externals = python
[testenv:py37]
basepython = python3.7
deps =
pytest
commands =
py.test {posargs}
[testenv:py36]
basepython = python3.6
deps =
pytest
commands =
py.test {posargs}
[testenv:black]
; "black" is a code formatter, much like gofmt. It requires 3.6 or higher.
; Tingle has 3.6 available to it; but feel free to uncomment the line
; `ignore_outcome` if it fails. Docs: https://github.com/ambv/black
;ignore_outcome = true
basepython = python3.7
deps = black
skip_install = true
commands =
; remove the '--diff' and '--check' flags to automatically write out corrections
black --diff --check {toxinidir}/kapre
black --diff --check {toxinidir}/tests
; The sections defined below are for configuring specific tools that are used
; in the above testenvs. Usually, if the tool is ran directly/outside of tox,
; i.e. `(env) $ pytest`, it will still pick up this configuration.