blob: 3d0121d6729924bc0a35c133d2881d9a6aec5f8a (
plain)
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
|
[tox]
envlist =
py37,py38,py39,py310
[testenv]
setenv =
BERKELEYDB_DIR = /usr
commands =
{envpython} -m mypy rdflib --show-error-context --show-error-codes
{envpython} setup.py clean --all
{envpython} setup.py build
{envpython} -m pytest
deps =
-rrequirements.txt
-rrequirements.dev.txt
[testenv:cover]
basepython =
python3.7
commands =
{envpython} -m pytest \
--cov-report term \
--cov-report html \
--cov
deps =
-rrequirements.txt
-rrequirements.dev.txt
[testenv:py3{7,8,9,10}-mypy]
commands =
{envpython} -m mypy --show-error-context --show-error-codes
deps =
-rrequirements.txt
-rrequirements.dev.txt
[testenv:docs]
basepython =
python3.7
deps =
extras =
docs
passenv = TERM
setenv =
PYTHONHASHSEED = 0
commands =
sphinx-build -n -T -b html -d {envtmpdir}/doctrees docs docs/_build/html
[pytest]
# log_cli = true
# log_cli_level = DEBUG
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format=%Y-%m-%d %H:%M:%S
|