-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
76 lines (54 loc) · 1.01 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
64
65
66
67
68
69
70
71
72
73
74
75
76
[tox]
envlist = py310, lint
isolated_build = true
[testenv]
deps =
pytest
commands =
pytest tests/
[testenv:docs]
deps =
sphinx
sphinx-issues
sphinx-material
ghp-import
commands =
sphinx-apidoc -o docs/api --separate --module-first src/poppler src/poppler/cpp/
sphinx-build docs build/docs --color -W -a -bhtml {posargs}
ghp-import -n build/docs
[testenv:lint]
skip_install = true
deps =
flake8
flake8-bugbear
commands =
flake8 src/ tests/
[testenv:printver]
deps =
commands =
python -c "import poppler; print('Poppler version:', poppler.version())"
[testenv:devenv]
description = Used to create the developer environment
basepython = py310
skip_install = true
download = true
envdir = .venv
deps =
black
flake8
flake8-bugbear
sphinx
sphinx-issues
sphinx-material
[flake8]
max-line-length = 80
ignore = E203, E501, W503
select = C,E,F,W,B,B950
exclude =
.git,
.tox,
.venv,
__pycache__,
build,
dist,
pybind11