-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (65 loc) · 2.05 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
[tool.poetry]
name = "image-analyst-cv2"
version = "0.2.0"
description = "ImageAnalyst CV2 is an extension to the ImageAnalyst library, providing additional models and functions using cv2."
authors = ["Lucas Berg <[email protected]>"]
repository = "https://github.com/BergLucas/ImageAnalystCV2"
keywords = ["image", "analysis", "cv2"]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
packages = [{ include = "image_analyst", from = "src" }]
[tool.poetry.dependencies]
python = "^3.9"
numpy = "^1.24.3"
image-analyst = "^0.2.0"
opencv-contrib-python = { version = "^4.10.0.84", optional = true }
opencv-contrib-python-headless = { version = "^4.10.0.84", optional = true }
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
mypy = "^1.4.1"
coverage = "^7.2.7"
ruff = "^0.6.4"
[tool.poetry.extras]
cv2 = ["opencv-contrib-python"]
cv2-headless = ["opencv-contrib-python-headless"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
test = "python -m unittest -v"
coverage = "coverage run -m unittest -v"
coverage-report = ["coverage", { cmd = "coverage report" }]
coverage-html = ["coverage", { cmd = "coverage html" }]
mypy = "mypy src"
black = "black src"
ruff = "ruff check src"
ruff-fix = "ruff check --fix src"
ruff-ufix = "ruff check --fix --unsafe-fixes src"
lint = ["black", "ruff", "mypy"]
[tool.coverage.run]
relative_files = true
branch = true
source = ["src/image_analyst/cv2", "tests"]
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"N", # pep8-naming
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"TCH", # flake8-type-checking
"Q", # flake8-quotes
"PL", # pylint
]
ignore = ["E203", "D100", "D101", "D104", "D105", "D106", "N818", "PLR0913"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
ignore_missing_imports = true