getomni-ai / zerox

PDF to Markdown with vision models
https://getomni.ai/ocr-demo
MIT License
6.74k stars 367 forks source link

BUILD: Prepare monorepo structure for Zerox #4

Closed wizenheimer closed 4 months ago

wizenheimer commented 4 months ago

Description

This PR drafts a monorepo structure for Zerox.

Changes Made

  1. Poetry Integration: Added Poetry for managing Python dependencies.
  2. Dependency Separation: Organized dependencies into separate groups for test, development, and vanilla builds
  3. Setuptools Integration: Integrated Setuptools for building the package.
  4. Post Install Hooks: Added mock post-install hooks for setting up system dependencies. These hooks are placeholders and can be replaced with actual implementation later.
  5. Makefile: Created a Makefile to simplify the setup of the development environment and the final build process.
  6. Code Quality Checks: Integrated Ruff for linting. Added Black for code formatting. Configured pre-commit hooks and .editorconfig for consistent code.
  7. .gitignore Update: Updated .gitignore to accommodate changes in the directory structure of the monorepo.

Tests

  1. Verified functionality of the Makefile to ensure it sets up the development environment and builds the package correctly.

Documentation

  1. No new documentation has been added at this time.

Additional Notes

  1. The changes are intended to validate the proposed monorepo structure.
  2. Current implementations are placeholders. The actual implementation details will be added once the proposed structure is reviewed and approved.
tylermaran commented 4 months ago

Hey @wizenheimer, did a brief code review and this repo structure looks good!

I'll spend some time this afternoon doing a full end to end test, and hopefully we can merge today.