Codebase Formatting with black and isort #27
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This pull request focuses on improving code quality and consistency by formatting the entire codebase using
blackandisort. The formatting was executed via thepoetry run formatcommand, which standardizes the Python code style and organizes imports.Key Changes
Formatted Codebase:
blackto enforce a consistent and readable code style.isortto ensure they are structured logically and adhere to standard conventions.Poetry Script Integration:
poetry run formatcommand was used to perform the formatting. This ensures all contributors can use the same formatting tools consistently.Benefits
blackandisortensures uniformity, reducing unnecessary code review comments about formatting.How to Test
poetryis installed:curl -sSL https://install.python-poetry.org | python3 -Next Steps
poetry run format-checkto prevent unformatted code from being merged in the future.poetry run formatbefore committing code.pre-commithooks to automatically runblackandisorton staged files before each commit. This will ensure consistent formatting without requiring manual intervention.References
By formatting the codebase and introducing tools for maintaining consistency, this PR sets a strong foundation for better collaboration and streamlined development processes.