-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
54 lines (49 loc) · 1.17 KB
/
tox.ini
File metadata and controls
54 lines (49 loc) · 1.17 KB
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
[tox]
description = list of environments
envlist =
clean,
check,
docs,
py36,
py37,
pypy,
pypy3
[testenv]
basepython =
pypy: {env:PYTHON:pypy}
pypy3: {env:PYTHON:pypy3}
py36: {env:PYTHON:python3.6}
py37: {env:PYTHON:python3.7}
{clean,check,reformat}: {env:PYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = false
skip_install = false
[testenv:check]
description = checks for flake8, black, isort and reportinator code style
deps =
black
docutils
isort
flake8
mypy
pygments
skip_install = true
commands =
python setup.py check --strict --metadata --restructuredtext
flake8 reportinator setup.py
isort --check-only --diff --recursive --project reportinator --section-default reportinator setup.py
black --check reportinator setup.py
mypy --ignore-missing-imports --check-untyped-defs --no-strict-optional reportinator
[testenv:reformat]
description = reformats the code using black and isort
deps =
black
isort
skip_install = true
commands =
isort --recursive --project reportinator --section-default reportinator setup.py
black reportinator setup.py