Formate uploading files with black linting tool #1094
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 PR aims to address Issue #1023 by integrating code formatting and linting tools into our development workflow. The primary goal is to enhance efficiency and improve the quality of the suggestions provided by LLMs by pre-screening code for errors. This preemptive check reduces the computational demand on LLMs, allowing them to focus on the complexity of tasks rather than basic syntax corrections.
Implementation Details
To minimize the impact on user experience, we plan to implement an automatic linting feature that will be enabled by default during the code processing phase. Users will be informed that their codebase has undergone linting, ensuring transparency. Additionally, we will provide an option for users who prefer not to use the linting tools, respecting diverse development preferences.
Scope and Targets
The initial rollout will focus on supporting Python files. This decision is made to strike a balance between managing dependencies and meeting the feature's requirements efficiently. By starting with these languages, we aim to cover a significant portion of the development activities within our community while keeping the implementation manageable.