-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (49 loc) · 1.35 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
[tool.poetry]
name = "imutils2"
version = "0.1.0"
description = "image utils"
authors = ["Sully <codeskyblue@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/codeskyblue/imutils2"
[tool.poetry.dependencies]
python = "^3.8"
numpy = "*"
Pillow = "*"
typeguard = "*"
requests = "*"
opencv-python = {version = "*", optional = true}
[tool.poetry.extras]
opencv = ["opencv-python"]
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
pytest-cov = "^2"
pytest-httpserver = "^1.0.8"
[tool.poetry-dynamic-versioning] # 根据tag来动态配置版本号
enable = true
# 需要将原本的build-system替换掉
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.coverage.run]
branch = true
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
omit = [
"tests/*",
"docs/*"
]