yoheinakajima / instagraph

Converts text input or URL into knowledge graph and displays
MIT License
3.27k stars 281 forks source link

add formatter and linter #62

Closed isamu closed 10 months ago

isamu commented 10 months ago

Summary by CodeRabbit

Release Notes

coderabbitai[bot] commented 10 months ago

Walkthrough

This pull request introduces a series of enhancements to the codebase, focusing on improving code quality, consistency, and type checking. It includes changes to the build system, codebase, and project dependencies. The codebase has been refactored for better readability, organization, and error handling. New functions have been defined, and existing ones have been modified for better performance and maintainability.

Changes

File Summary
Makefile Improved linting and formatting commands for better code quality, consistency, and type checking.
main.py Reorganized imports, defined new functions, and modified existing ones for better performance and maintainability.
models.py Reformatted code, updated field descriptions, and added docstrings for better readability and organization.
requirements.txt Added several Python packages to improve code quality and consistency.

"In the land of code, where the shadows lie, A rabbit hopped, with a twinkle in its eye. With each line changed, each function refined, A better codebase, it left behind. 🐇💻 So here's to the rabbit, and its diligent quest, To make our code, simply the best!" 🎉🥕

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume. - Additionally, enter `@coderabbitai pause` to halt the bot's ongoing reviews as any issue or review comment. To resume reviews, enter `@coderabbitai resume` as any issue or review comment.