Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat():optional-dependencies, remove pydantic :( #58

Merged
merged 12 commits into from
Jan 13, 2025
Merged

feat():optional-dependencies, remove pydantic :( #58

merged 12 commits into from
Jan 13, 2025

Conversation

sudoskys
Copy link
Owner

Enhanced dependency management by including all extras. 📦
This ensures all optional features are installed during testing. 🚀
Introduces logging setup for better traceability and debugging. 🛠️
Refactored to conditionally import `ClientSession` and `PIL.Image` using `TYPE_CHECKING`. This ensures that the necessary libraries are imported only when available, and raises informative errors otherwise. This change improves code maintainability and avoids unnecessary imports.
- Changed `logger.warn` to `logger.warning` for better clarity.
- Added exception handling for `aiohttp` import to manage missing dependencies.

This enhances code readability and robustness.

#56
Replaced `loguru` logger import with custom logger from `.logger` module. This change improves consistency and maintainability by centralizing logger configuration.

#56
Enhanced environment management by including python-dotenv. This allows reading key-value pairs from a .env file, simplifying environment variable handling.
Added `support_mermaid` function to verify if necessary libraries are installed for mermaid support. Logs an error if mermaid is not supported, improving debugging and user experience.
Introduced `latex_render_case.py` for rendering LaTeX using matplotlib,
allowing for customizable background and text colors, dpi, and font size.
Additionally, added `inspect_markdownify.py` for converting markdown to
Telegram MarkdownV2 style, demonstrating integration with Telegram bot
for message sending.
- Renamed `dev` group to `tests` for clarity.
- Updated installation commands in README and GitHub Actions.
- Ensures dependencies are installed for testing.
- Fix the install command to ensure both mermaid and tests groups are installed
- Improves CI reliability by ensuring all necessary dependencies are present
Enhanced the README to include more specific optional dependencies
instructions. Improved text formatting for better readability and
clarity.
@sudoskys sudoskys linked an issue Jan 13, 2025 that may be closed by this pull request
@sudoskys
Copy link
Owner Author

with #57

Added a check for Mermaid support in the `MermaidInterpreter`
class. If unsupported, logs an error suggesting installing the
necessary libraries, preventing task processing without support.
This improves user guidance and debugging.
@sudoskys sudoskys merged commit 31ac0f8 into main Jan 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce the amount of dependencies
1 participant