dodil/erp-brick-inventory
DODIL ERP brick: inventory
pyproject.toml
[project]
license = "Apache-2.0"
license-files = ["LICENSE"]
name = "erp-brick-inventory"
version = "0.1.2"
description = "Where every item is and how many you have: warehouses and their shelves, goods received from suppliers, picked and delivered to customers, moved between shelves and sites, and counted, with every movement recorded so the quantity on a shelf and the value of the stock always add up, and nobody sells the last unit twice."
requires-python = ">=3.10"
dependencies = ["erp-platform>=0.9.7,<0.10"]
[project.optional-dependencies]
test = ["pytest>=8", "uvicorn>=0.34"]
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
# The schema, the migrations and the process ship INSIDE the package: an installed brick (how a composition
# gets it) must be able to migrate its own tables and show its own process.
[tool.setuptools.package-data]
brick_inventory = ["schema.sql", "migrations/*/*.sql", "application/process.yaml", "roles.yaml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "tests"]
addopts = "--show-capture=no -p no:logging"
# The rules this brick is held to: pyflakes, the error classes and import order.
[tool.ruff]
line-length = 130
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
ignore = ["E741", "E731"] # `l` for a line/location row is the house idiom here