Deep-Barcode-Reader / pyproject.toml
afshin-dini's picture
Transfer project
36ccd32
[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"