-
Notifications
You must be signed in to change notification settings - Fork 22
Avoid formatting that causes large diffs (CF-637) #274
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c75bbf6
check large diffs with black, and skipp formatting in such case (afte…
mohammedahmed18 5cd13ad
new line
mohammedahmed18 1522227
better log messages
mohammedahmed18 d3ca1cb
remove unnecessary check
mohammedahmed18 dcb084a
new line
mohammedahmed18 689a2d9
remove unused comment
mohammedahmed18 44c0f85
the max lines for formatting changes to 100
mohammedahmed18 73ef518
refactoring
mohammedahmed18 a5343fd
refactoring and improvements
mohammedahmed18 395855d
added black as dev dependency
mohammedahmed18 822d6cc
made some refactor changes that codeflash suggested
mohammedahmed18 ce15022
remove unused function
mohammedahmed18 d2a8711
formatting & using internal black dep
mohammedahmed18 f46b368
fix black import issue
mohammedahmed18 6504cc4
handle formatting files with no formatting issues
mohammedahmed18 aed490d
Merge branch 'main' into skip-formatting-for-large-diffs
Saga4 82a4ee1
use user pre-defined formatting commands, instead of using black
mohammedahmed18 90014bd
Merge branch 'skip-formatting-for-large-diffs' of github.com:codeflas…
mohammedahmed18 caeda49
make sure format_code recieves file path as path type not as str
mohammedahmed18 6967fcb
formatting and linting
mohammedahmed18 8248c8e
typo
mohammedahmed18 15aacdb
revert lock file changes
mohammedahmed18 c24fc90
remove comment
mohammedahmed18 b48e9e6
pass helper functions source code to the formatter for diff checking
mohammedahmed18 93070a9
Merge branch 'main' of github.com:codeflash-ai/codeflash into skip-fo…
mohammedahmed18 64f2dd9
more unit tests
mohammedahmed18 a1510a3
enhancements
mohammedahmed18 6f97004
Merge branch 'main' into skip-formatting-for-large-diffs
Saga4 6cb8469
Update formatter.py
Saga4 94e64d3
Update formatter.py
Saga4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we hardcoding this 30% or 50 lines logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overall formatting other than the optimized function could be too small but annoying if its around formatting.
And when we are only looking at code other than optimzied function, there could be changes in helper functions or imports or global variables too, so how are we sure of this count of 50?