Only run when main_inventory is run & discard parameters passed by pre-commit which breaks babel command