forked from justanr/flask-allows
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
59 lines (51 loc) · 1.38 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
[tox]
envlist = flake8,black,py38,py39,py310,py311,cov-report,cov-store
[testenv]
usedevelop = true
setenv =
COVERAGE_FILE = test/.coverage.{envname}
PYTHONDONTWRITEBYTECODE = 1
commands =
coverage run -m pytest {toxinidir}/test {toxinidir}/src {posargs}
deps =
-r{toxinidir}/requirements-test.txt
[testenv:cov-report]
skip_install = true
setenv =
COVERAGE_FILE = test/.coverage
deps =
-r{toxinidir}/requirements-cov.txt
commands =
coverage combine test
coverage report
[testenv:cov-store]
skip_install = true
setenv =
COVERAGE_FILE = test/.coverage
deps =
-r{toxinidir}/requirements-cov.txt
commands =
coverage html
[testenv:black]
skip_install = true
deps = black
basepython=python3.9
commands = black --check test/ src/flask_allows/
[testenv:flake8]
skip_install = true
deps = -r{toxinidir}/requirements-lint.txt
basepython=python3.9
commands =
flake8 --version
flake8 --config={toxinidir}/tox.ini {toxinidir}/src/flask_allows {toxinidir}/test
[flake8]
ignore = E203, E712, E711, W503
select = C,E,F,W,B,B9
max-complexity = 10
max-line-length = 88
[pytest]
norecursedirs = .tox .git .cache *.egg htmlcov
addopts = -vvl --capture fd --strict -W error:::flask_allows
markers =
regression: issue found that has been corrected but could arise again
integration: used to run only integration tests