-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
63 lines (55 loc) · 1.82 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
60
61
62
63
[tox]
; Activate isolated build environment.
isolated_build = true
envlist = py{39,310},py{39,310}-hello,python{3.8}-hello
[testenv]
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry install --sync --all-extras --with dev,test,coverage
poetry run python --version
poetry run pytest --version
poetry run tox --version
poetry run black ./src --check
poetry run flake8 ./src
poetry run mypy ./src
poetry run isort ./src --check
commands =
poetry run pytest -ra -vvv -s --import-mode=importlib --cov=./src --cov-report=term-missing --cov-fail-under=80
commands_post =
poetry run coverage xml
poetry run coverage html
poetry run coverage report --fail-under=95
[testenv:hello]
commands_pre =
poetry run python --version
poetry run pytest --version
poetry run tox --version
poetry run black ./src/hello --check
poetry run flake8 ./src/hello
poetry run isort ./src/hello --check
commands =
poetry run pytest -ra -vvv -s --import-mode=importlib --cov=hello --cov-report=term-missing --cov-fail-under=95 tests/test_hello
[testenv:pdf_parse]
commands_pre =
poetry run python --version
poetry run pytest --version
poetry run tox --version
poetry run black ./src/pdf_parse --check
poetry run flake8 ./src/pdf_parse
poetry run mypy ./src
poetry run isort ./src/pdf_parse --check
commands =
poetry run pytest -ra -vvv -s --import-mode=importlib --cov=pdf_parse --cov-report=term-missing --cov-fail-under=90 tests/test_pdf_parse
[testenv:all]
commands_pre =
poetry run python --version
poetry run pytest --version
poetry run tox --version
poetry run black ./src --check
poetry run flake8 ./src
poetry run mypy ./src
poetry run isort ./src --check
commands =
poetry run pytest -ra -vvv -s --import-mode=importlib --cov=./src --cov-report=term-missing --cov-fail-under=80 tests