Spaces:
Sleeping
Sleeping
File size: 1,879 Bytes
36ccd32 | 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 | [tool.poetry]
name = "deep_barcode_reader"
version = "0.3.0"
description = "It can read different types of barcodes"
authors = ["Afshin Dini <Afshin Dini>"]
readme = "README.md"
packages = [{include = "deep_barcode_reader", from = "src"}]
[tool.poetry.scripts]
deep_barcode_reader = "deep_barcode_reader.main:deep_barcode_reader_cli"
[tool.pylint.format]
max-line-length=150 # This defines the maximum number of characters on a single line in pylint
[tool.pylint.design]
max-attributes=10
max-positional-arguments=6
max-args=6
[tool.pylint.messages_control]
disable=["fixme"]
[tool.pylint.similarities]
min-similarity-lines = 8 # Minimum lines number of a similarity.
ignore-imports = true # Ignore imports when computing similarities.
[tool.pytest.ini_options]
junit_family="xunit2"
addopts="--cov=deep_barcode_reader --cov-fail-under=65 --cov-branch"
asyncio_mode="strict"
[tool.coverage.run]
omit = ["tests/*"]
branch = true
[[tool.poetry.source]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu118"
priority = "explicit"
[tool.poetry.dependencies]
python = "^3.10"
click = "^8.1.7"
ultralytics = "8.2.18"
qreader = "3.12"
pyzbar = "^0.1.9"
opencv-python = "^4.9.0.80"
torch = [
{ version = "^2.1.2", source = "pytorch", platform = "!=darwin"},
{ version = "^2.1.2", source = "pypi", platform = "darwin"},
]
torchvision = [
{ version = "^0.16.0", source = "pytorch", platform = "!=darwin"},
{ version = "^0.16.0", source = "pypi", platform = "darwin"},
]
numpy = "1.26.4"
streamlit = "^1.42.2"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
coverage = "^7.6"
pytest-cov = "^6.0"
pylint = "^3.3.1"
black = "^24.10.0"
mypy = "^1.13.0"
bump2version = "^1.0.1"
bandit = "^1.7.10"
pre-commit = "^4.0.1"
detect-secrets = "^1.5"
[build-system]
requires = ["poetry-core>=1.5.0"]
build-backend = "poetry.core.masonry.api"
|