forked from kulgan/psqlgml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
75 lines (67 loc) · 1.32 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
[tox]
minversion = 3.4.0
envlist = py{39,38,37,36}
isolated_build = True
skip_missing_interpreters = true
[pytest]
minversion = 6.0
addopts = -rflv --cov=psqlgml --cov-report=term
markers =
slow: slow running tests
dictionary: dictionary loading test
validation: data validation tests
testpaths =
tests/unit
tests/integration
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 89
max-complexity = 18
exclude =
.git
.tox
.pytest*
htmlcov
build
dist
*.pyc
.eggs
[testenv]
usedevelop = true
extras =
dev
commands =
python3 -m pytest --cov-report xml --cov-report html {posargs: }
[testenv:lint]
skip_install = True
commands_pre =
deps =
mypy
pre-commit
allowlist_externals =
bash
commands =
pre-commit run --all-files --show-diff-on-failure {posargs: }
bash mypy
[testenv:docs]
commands =
sphinx-build docs/source docs/build -b html
[testenv:release]
deps =
build
twine
passenv =
TWINE_PASSWORD
TWINE_REPOSITORY
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
python -m build
python -m twine upload dist/*
[testenv:changelog]
basepython = python3
deps =
towncrier
commands =
python3 bin/release changelog --no-draft