-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
48 lines (42 loc) · 873 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
39
40
41
42
43
44
45
46
47
48
# -*-mode:ini-*- vim:ft=dosini
# Config file for Tox automation tool
#
# Runs automated tests in multiple Python environments.
# See https://tox.readthedocs.io/
[tox]
envlist = lint, py3{5,6,7,8}, pypy3
skip_missing_interpreters = true
[travis]
python =
3.8: py38
3.7: py37
3.6: py36
3.5: py35
[testenv]
setenv =
PYTHONPATH = {toxinidir}
extras =
test
commands =
pip install --upgrade pip
pytest --basetemp={envtmpdir}
[testenv:format]
basepython = python3.6
skip_install = true
extras =
lint
commands =
isort -rc .
black .
[testenv:lint]
basepython = python3.6
extras =
lint
commands =
flake8
mypy
pylint --exit-zero setup.py countdoom examples
pylint --exit-zero --disable=E0401 tests/test_cli.py tests/test_client.py \
tests/test_package.py
isort --check -rc .
black --check --diff .