-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (60 loc) · 1.3 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "raspi-zero-fastapi-camera-control"
version = "0.1.0"
description = ""
authors = ["WOGRA AG <info@wogra.com>"]
[tool.poetry.dependencies]
python = "^3.8"
fastapi = "^0.75.1"
uvicorn = "^0.17.6"
gunicorn = "^20.1.0"
certifi = "^2021.10.8"
[tool.poetry.dev-dependencies]
opencv-python = "^4.5.1"
pytest = "^7.1.1"
coverage = { version = "^6.3.2", extras = ["toml"] }
isort = { version = "^5.6.4", extras = ["pyproject"] }
requests = "^2.25.0"
black = "~21.12b0"
click = "~8.0.2"
pytest-asyncio = "^0.18.3"
fastapi-code-generator = "^0.3.4"
[tool.black]
# https://github.com/psf/black
line-length = 120
target_version = ['py37']
exclude = '''
(
/(
\.git
| \.mypy_cache
| \.pytest_cache
| htmlcov
| venv
| .venv
)/
)
'''
[tool.isort]
# https://github.com/timothycrosley/isort
# https://github.com/timothycrosley/isort/wiki/isort-Settings
line_length = 79
indent = ' '
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
[tool.coverage]
# https://github.com/nedbat/coveragepy
[tool.coverage.run]
source = ["src"]
branch = true
omit = ['']
[tool.coverage.report]
exclude_lines = [
"# noqa",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]