-
Notifications
You must be signed in to change notification settings - Fork 333
Expand file tree
/
Copy pathtox.ini
More file actions
81 lines (58 loc) · 1.27 KB
/
Copy pathtox.ini
File metadata and controls
81 lines (58 loc) · 1.27 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
73
74
75
76
77
78
79
80
81
[tox]
envlist = py{311,312,313,py3},check,lint,docs,test_unit,coverage
skip_missing_interpreters = true
[testenv:test_integration]
commands =
pytest test/integration/
passenv =
DROPBOX_REFRESH_TOKEN
DROPBOX_APP_KEY
DROPBOX_APP_SECRET
DROPBOX_DOMAIN
DROPBOX_TEAM_TOKEN
DROPBOX_TOKEN
DROPBOX_WEB_HOST
DROPBOX_SHARED_LINK
deps =
pip
-rtest/requirements.txt
[testenv:check]
commands =
python -m build
twine check dist/*
deps =
build
twine
usedevelop = true
[testenv:lint]
description = check code with Ruff
commands =
ruff check dropbox example test
ruff format --check dropbox example test
deps =
ruff
-rtest/requirements.txt
usedevelop = true
[testenv:coverage]
commands =
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
coverage report
deps =
-rtest/requirements.txt
[testenv:codecov]
commands =
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
coverage xml
deps =
-rtest/requirements.txt
[testenv:test_unit]
commands =
pytest test/unit/
deps =
-rtest/requirements.txt
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
extras = docs
commands = sphinx-build -b html docs build/html
deps =
sphinx