-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
53 lines (47 loc) · 1.09 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]
envlist=clean,py{36,37,38},report
skip_missing_interpreters=True
[testenv]
commands=
coverage run --append -m pytest -v
coverage report
deps=-r requirements/test.txt
[testenv:report]
basepython=python3.8
skip_install=true
deps=-r requirements/test.txt
commands=
coverage report
coverage xml
[testenv:clean]
basepython=python3.8
skip_install=True
deps=-r requirements/test.txt
commands=coverage erase
[testenv:run]
basepython=python3.8
commands=python {posargs}
passenv=SMALLD_TOKEN
deps=
[testenv:fmt]
basepython=python3.8
skip_install=True
commands=
autoflake -ri --remove-all-unused-imports --ignore-init-module-imports {env:PY_FILES}
isort -rc {env:PY_FILES}
black -t py36 {env:PY_FILES}
deps=-r requirements/fmt.txt
whitelist_externals=sort
setenv=
LC_ALL=C.UTF-8
PY_FILES=setup.py smalld_click/ test/ examples/
[testenv:pip-compile]
basepython=python3.6
skip_install=True
commands=
pip-compile --output-file=requirements/fmt.txt requirements/fmt.in
pip-compile --output-file=requirements/test.txt requirements/test.in
deps=pip-tools==5.1.2
setenv=
LC_ALL=C.UTF-8
LANG=C.UTF-8