forked from openzim/python-scraperlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (32 loc) · 743 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
[tox]
envlist = py38, py39, py310, py311, black, isort, flake8, coverage
[testenv]
passenv =
WGET_BINARY
ZIMWRITERFS_BINARY
deps =
pytest
coverage
pytest-cov
-r{toxinidir}/requirements.txt
commands =
pytest --runslow --runinstalled --cov=zimscraperlib --cov-report=term --cov-report term-missing {posargs}
[testenv:black]
deps =
black>=23.1.0,<24
commands = black --check .
[testenv:isort]
base_python=py38
deps =
isort>=5.12.0,<5.13
commands = isort --profile black --check src tests
[testenv:flake8]
deps =
flake8>=6.0.0,<7.0
commands = flake8 src --count --max-line-length=88 --statistics --extend-ignore=E203
[testenv:coverage]
passenv =
CODECOV_TOKEN
deps =
codecov
commands = codecov