-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (58 loc) · 1.15 KB
/
tox.ini
File metadata and controls
69 lines (58 loc) · 1.15 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
[tox]
envlist =
py3
black
flake8
mypy
pyright
isolated_build = True
[tox:.package]
basepython = python3
[testenv]
commands =
poetry install
poetry run pytest {posargs}
whitelist_externals = poetry
[testenv:black]
skip_install = true
whitelist_externals = poetry
commands =
poetry install
poetry run black --check python_chargepoint/ tests/
[testenv:flake8]
skip_install = true
whitelist_externals = poetry
commands =
poetry install
poetry run flake8 python_chargepoint/ tests/
[testenv:mypy]
skip_install = true
whitelist_externals = poetry
commands =
poetry install
poetry run mypy python_chargepoint/
[testenv:pyright]
skip_install = true
whitelist_externals = poetry
commands =
poetry install
poetry run pyright python_chargepoint/
[pytest]
asyncio_mode = auto
testpaths = tests
addopts =
--cov
--cov-config=tox.ini
--cov-report=term
--cov-report=xml
[flake8]
# Match Black Formatter
max-line-length = 88
extend-ignore = E203, E501, W503
[coverage:run]
source = python_chargepoint
branch = True
omit = python_chargepoint/__main__.py
[coverage:report]
show_missing = True
fail_under = 90