-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
68 lines (60 loc) · 1.43 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
envlist=clean,py{37,38,39},report
skip_missing_interpreters=True
[testenv]
commands=
coverage run --append -m pytest
coverage run --append -m behave
coverage report
deps=-r requirements/test.txt
[testenv:report]
basepython=python3.9
skip_install=true
deps=-r requirements/test.txt
commands=
coverage report
coverage xml
[testenv:lint]
basepython=python3.7
commands=pytype tsktsk
deps=-r requirements/lint.txt
[testenv:clean]
basepython=python3.7
skip_install=True
deps=-r requirements/test.txt
commands=
coverage erase
rm -rf .pytype
whitelist_externals=rm
[testenv:fmt]
basepython=python3.7
skip_install=True
commands=
autoflake -ri --remove-all-unused-imports --ignore-init-module-imports {env:PY_FILES}
isort {env:PY_FILES}
black -t py37 {env:PY_FILES}
sort -o .gitignore .gitignore
deps=-r requirements/fmt.txt
whitelist_externals=sort
setenv=
LC_ALL=C.UTF-8
PY_FILES=setup.py tsktsk/ test/ features/
[testenv:pip-compile]
basepython=python3.7
skip_install=True
commands=
pip-compile --output-file requirements.txt requirements.in
pip-compile --output-file requirements/fmt.txt requirements/fmt.in
pip-compile --output-file requirements/lint.txt requirements/lint.in
pip-compile --output-file requirements/test.txt requirements/test.in
deps=
pip-tools==5.1.2
[testenv:run]
basepython=python3.9
commands=tsktsk {posargs}
deps=
[testenv:bot]
basepython=python3.9
commands=tsktsk-bot
deps=
passenv=SMALLD_TOKEN