-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (72 loc) · 1.75 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[tool.poetry]
name = "bn-adjustable-bed"
version = "0.0.0"
description = "BN Adjustable Bed Mock API and Socket Interface"
include = ["bn_adjustable_bed/config"]
homepage = "https://github.com/trevorlauder/bn-adjustable-bed"
repository = "https://github.com/trevorlauder/bn-adjustable-bed"
authors = [
"Trevor Lauder <trevor@lauder.family>",
]
maintainers = [
"Trevor Lauder <trevor@lauder.family>",
]
license = "MIT"
readme = "README.md"
classifiers = [
"Topic :: Home Automation",
]
[tool.poetry.scripts]
bn-app-api = "bn_adjustable_bed.app_api:main"
bn-controller-api = "bn_adjustable_bed.controller_api:main"
bn-bed-socket = "bn_adjustable_bed.bed_socket:main"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = ">=0.70,<0.86"
redis = "^4.0"
pyyaml = "^6.0"
uvicorn = ">=0.15,<0.19"
pytest = { version = ">=6.2,<8.0", optional = true }
pytest-mock = { version = "^3.6", optional = true }
pytest-cov = { version = ">=3,<5", optional = true }
requests = { version = "^2.26", optional = true }
[tool.poetry.dev-dependencies]
tox = "^3.26"
[tool.poetry.extras]
test = ["pytest", "pytest-mock", "pytest-cov", "requests"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = clean,py310,report
isolated_build = true
[testenv]
extras =
test
commands =
pytest --cov --cov-append --cov-report=term-missing {posargs:-vv}
depends =
{py310}: clean
report: py310
[testenv:clean]
extras =
test
commands =
coverage erase
[testenv:report]
extras =
test
commands =
coverage xml
coverage report
"""
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
use_parentheses = true
include_trailing_comma = true