-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
61 lines (52 loc) · 1.56 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
[tool.poetry]
name = "homie-power-supply-node"
version = "0.1.2"
description = "homie-power-supply-node is a Python package that uses homie-spec to provide a homie node implementation that can be used to create Homie-compliant messages from your power supply device."
authors = ["Xavier Francisco <[email protected]>"]
license = 'MIT'
readme = 'README.md'
keywords = ["homie", "mqtt"]
repository = "https://github.com/Qu4tro/homie-power-supply-node/"
[tool.poetry.dependencies]
python = "^3.6"
homie-spec = "^0.4.0"
[tool.poetry.dev-dependencies]
tox = "^3.14.3"
pdoc3 = "^0.7.2"
pytest = "^5.2"
codecov = "^2.0.15"
pytest-cov = "^2.8.1"
pytest-mypy = "^0.4.2"
pytest-watch = "^4.2.0"
pytest-sugar = "^0.9.2"
pytest-black = "^0.3.7"
pytest-pylint = "^0.14.1"
bpython = "^0.18"
[tool.black]
line-length = 90
target-version = ['py36', 'py37', 'py38']
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = py36,py37,py38
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
whitelist_externals = poetry
commands =
poetry install -v
poetry run pytest --mypy --pylint --black --doctest-modules --cov=homie_power_supply_node {posargs}
codecov -e TOXENV
"""
[tool.coverage.run]
branch = true
source = ["homie_power_supply_node","tests"]
[tool.coverage.report]
exclude_lines = ["if self.debug:", "pragma: no cover", "raise NotImplementedError", "if __name__ == .__main__.:"]
ignore_errors = true
omit = ["tests/*"]
[tool.pylint.messages_control]
disable = "bad-continuation"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"