yoheinakajima / instagraph

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

add format and lint scripts #61

Closed isamu closed 1 year ago

isamu commented 1 year ago

Summary by CodeRabbit

These changes aim to improve the overall quality of the codebase, making it easier to maintain and enhancing the application's performance.

coderabbitai[bot] commented 1 year ago

Walkthrough

This pull request introduces significant refactoring to improve code readability, maintainability, and consistency. Changes include reorganization of import statements, function modifications, and formatting improvements in main.py and models.py. Additionally, new dependencies have been added to requirements.txt to enhance code quality.

Changes

File(s) Summary
main.py Import statements reorganized, several functions modified for better readability and maintainability. Consistent use of double quotes implemented.
models.py Formatting improvements, addition of type hints and field descriptions, and renaming of a field to avoid syntax error.
requirements.txt Addition of black[jupyter], isort, flake8, mypy packages to enhance code quality and consistency.

🐇

In the land of code, where the brackets lie,

Changes were made, under the GitHub sky.

With a hop and a skip, and a commit or two,

The rabbit improved the code, making it new.

Now it's neat and tidy, a sight to behold,

A tale of refactoring, waiting to be told. 🎉


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.