-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
72 lines (64 loc) · 1.17 KB
/
tox.ini
File metadata and controls
72 lines (64 loc) · 1.17 KB
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
[tox]
minversion = 3.4.0
envlist = py36
isolated_build = True
skip_missing_interpreters = true
[pytest]
minversion = 6.0
addopts = -rflv
testpaths =
tests
[testenv]
extras =
dev
commands =
python -m pytest --cov=justobjects --cov-report html --cov-report term {posargs: }
[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:lint]
commands_pre =
deps =
mypy
pre-commit
whitelist_externals =
bash
commands =
pre-commit run --all-files --show-diff-on-failure {posargs: }
bash mypy
[testenv:docs]
extras =
docs
changedir = docs
commands =
sphinx-build source build -b html
[testenv:release]
basepython = python3
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
extras =
changelog
commands =
python3 bin/release changelog --no-draft