-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
89 lines (80 loc) · 1.44 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
77
78
79
80
81
82
83
84
85
86
87
88
89
[tox]
envlist =
py{38,39,310,311,312}
lint
skip_missing_interpreters = true
[testenv]
deps =
coverage
pytest
pytest-cov
pytest-xdist
commands =
pytest --cov {envsitepackagesdir}/girder_client_mount {posargs}
[testenv:lint]
skipsdist = true
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings
flake8-isort
flake8-quotes
pep8-naming
commands =
flake8 {posargs}
[testenv:format]
skipsdist = true
skip_install = true
deps =
autopep8
isort
commands =
isort {posargs:.}
autopep8 --in-place --recursive {posargs:.}
[flake8]
max-line-length = 100
show-source = True
ignore =
# line break after binary operator
W504,
# Missing docstring in *
D10,
# Allow one-line docstrings
D200,
exclude =
*/*egg*/*
.tox
[pytest]
addopts = --verbose --strict-markers --showlocals --cov-report=term --cov-report=xml --cov
markers =
gc_options
mount_options
testpaths = tests
[coverage:paths]
source =
girder_client_mount/
.tox/*/lib/python*/site-packages/girder_client_mount/
[coverage:run]
data_file = .tox/coverage/.coverage
branch = True
omit =
tests/*
.tox/*
parallel = True
[coverage:xml]
output = .tox/coverage/py_coverage.xml
[testenv:release]
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
TWINE_NON_INTERACTIVE
GITHUB_REF
deps =
twine
commands =
python setup.py sdist
pip wheel . --no-deps -w dist
twine check dist/*
twine upload --skip-existing --verbose dist/*