-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (55 loc) · 1.53 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
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "homie-spec"
version = "0.5.0"
description = "homie-spec is a Python library that handles the v4 Homie Convention"
authors = ["Xavier Francisco <xavier.n.francisco@gmail.com>"]
license = 'MIT'
readme = 'README.md'
keywords = ["homie", "mqtt"]
homepage = "https://qu4tro.github.io/homie-spec/"
documentation = "https://qu4tro.github.io/homie-spec/"
repository = "https://github.com/Qu4tro/homie-spec/"
[tool.poetry.dependencies]
python = "^3.7"
[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"
hypothesis = "^5.0.0"
[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_spec {posargs}
codecov -e TOXENV
"""
[tool.coverage.run]
branch = true
source = ["homie_spec","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,no-value-for-parameter"
[tool.pylint.design]
max-args = 6