This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
/
pyproject.toml
68 lines (60 loc) · 1.4 KB
/
pyproject.toml
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
[tool.black]
line-length = 120
target-version = ["py38"]
[tool.isort]
profile = "black"
src_paths = ["src", "tests", "exa,ple"]
line_length = 120
known_first_party = "pushbullet"
[tool.coverage.run]
branch = true
parallel = true
source = ["pushbullet"]
[tool.coverage.report]
exclude_lines = ["^if __name__ == .__main__.:$]"]
omit = ["tests/*"]
show_missing = true
skip_covered = true
[tool.coverage.paths]
source = [
"pushbullet",
".tox/*/lib/python*/site-packages/pushbullet",
".tox/*/Lib/site-packages/pushbullet",
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py27, py38
[testenv]
deps =
pytest
cryptography
mock
coverage[toml]
python-magic
commands = coverage run --source pushbullet -m py.test {posargs}
passenv = PUSHBULLET_API_KEY
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[testenv:coverage]
description = [run locally after tests]: combine coverage data and create report
deps =
coverage[toml]
skip_install = True
passenv =
{[testenv]passenv}
DIFF_AGAINST
setenv = COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage combine --rcfile pyproject.toml
coverage report -m --rcfile pyproject.toml
coverage xml -o {toxworkdir}/coverage.xml --rcfile pyproject.toml
coverage html -d {toxworkdir}/htmlcov --rcfile pyproject.toml
depends =
py27,
py38,
parallel_show_output = True
[gh-actions]
python =
2.7: py27
3.8: py38
"""