forked from PyGreSQL/PyGreSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (49 loc) · 1.09 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
# config file for tox
[tox]
envlist = py3{7,8,9,10,11,12},ruff,mypy,cformat,docs
[testenv:ruff]
basepython = python3.12
deps = ruff>=0.5,<0.6
commands =
ruff check setup.py pg pgdb tests
[testenv:mypy]
basepython = python3.12
deps = mypy>=1.11,<1.12
commands =
mypy pg pgdb tests
[testenv:cformat]
basepython = python3.12
allowlist_externals =
sh
commands =
sh -c "! (clang-format --style=file -n ext/*.c 2>&1 | tee /dev/tty | grep format-violations)"
[testenv:docs]
basepython = python3.12
deps =
sphinx>=7,<8
commands =
sphinx-build -b html -nEW docs docs/_build/html
[testenv:build]
basepython = python3.12
deps =
setuptools>=68
wheel>=0.42,<1
build>=1,<2
commands =
python -m build -s -n -C strict -C memory-size
[testenv:coverage]
basepython = python3.12
deps =
coverage>=7,<8
commands =
coverage run -m unittest discover -v
coverage html
[testenv]
passenv =
PG*
PYGRESQL_*
deps =
setuptools>=68
commands =
python setup.py clean --all build_ext --force --inplace --strict --memory-size
python -m unittest {posargs:discover -v}