forked from caravancoop/configstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (54 loc) · 939 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tox]
envlist = py310
# enable pyproject.toml support
minversion = 3.4.0
isolated_build = True
[testenv]
deps =
flake8
pretend
pytest >= 3.9
extras =
dotenv
awsssm
commands =
flake8 configstore
pytest {posargs}
# TODO run tests against the installed sdist, not the source dir
[testenv:coverage]
deps =
{[testenv]deps}
coverage
commands =
coverage run -m pytest -qq {posargs}
coverage report
[testenv:pkg]
deps =
flit == 3.4.*
pip == 21.3.*
twine
safety == 1.10.*
commands =
flit build
twine check dist/*
safety check
[flake8]
max-line-length = 89
exclude = .git,.tox,__pycache__,dist
ignore = E731,N806
show-source = True
[pytest]
addopts = -svv
testpaths = tests
norecursedirs =
.tox
__pycache__
[coverage:run]
source = configstore
branch = 1
[coverage:report]
skip_covered = 1
show_missing = 1
fail_under = 100
exclude_lines =
pragma: no cover