-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (29 loc) · 1010 Bytes
/
tox.ini
File metadata and controls
33 lines (29 loc) · 1010 Bytes
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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py3
minversion = 3.3.0
# PEP517
isolated_build = True
[testenv:py3]
extras= dev
commands =
black --line-length 100 --check {toxinidir}/lk_compat_helper/commit_to_tag.py --diff
flake8 {toxinidir}/lk_compat_helper/commit_to_tag.py {toxinidir}/tests
mypy {toxinidir}/lk_compat_helper {toxinidir}/tests
coverage run -m unittest discover
coverage report -m
coverage html --skip-empty --fail-under=100
[flake8]
# E501, black already takes care of 100 chars, but flake8 still complains
# W503 it is wrong, fixed in latest versions
# E203: isn't PEP-8 compliant
# https://black.readthedocs.io/en/stable/the_black_code_style.html#slices
ignore = W503, E501, E203
[coverage:run]
source =
lk_compat_helper
omit =
.tox/*