-
Notifications
You must be signed in to change notification settings - Fork 19
Fix acknowledge when run on multiple files #244
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
irwand
merged 3 commits into
ni:main
from
mshafer-NI:dev/fix_acknowledge_on_multiple_files
Nov 14, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Empty file.
34 changes: 34 additions & 0 deletions
34
tests/test_cli/acknowledge_existing_errors_multiple_files/input/acknowledge_doc_lines.py
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||
| def method1(): | ||||||
| return 7 | ||||||
|
|
||||||
|
|
||||||
| def method2(): | ||||||
| """Provide an examples of doc strings that are too long. | ||||||
|
|
||||||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||||||
| """ | ||||||
| return 7 # Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||||||
|
|
||||||
|
|
||||||
| class Foo: | ||||||
| def __init__(self): | ||||||
| pass | ||||||
|
|
||||||
| def add(self, o): | ||||||
| """Provide an examples of doc strings that are too long. | ||||||
|
||||||
| """Provide an examples of doc strings that are too long. | |
| """Provide an example of doc strings that are too long. |
Copilot
AI
Nov 14, 2025
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.
Grammar error: "an examples" should be "an example"
102 changes: 102 additions & 0 deletions
102
...t_cli/acknowledge_existing_errors_multiple_files/input/acknowledge_function_signatures.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| """example of a python file with linter errors. | ||
| """ | ||
|
|
||
| import os | ||
|
|
||
| os.listdir() | ||
|
|
||
|
|
||
| def method_with_shadow_builtin(input): | ||
| """Shadow a builtin.""" | ||
| return input | ||
|
|
||
|
|
||
| def method_with_shadow_import(os): | ||
| """Shadow an import.""" | ||
| return os | ||
|
|
||
|
|
||
| def method_with_shadow_import_on_multiple_lines( | ||
| x, | ||
| y, | ||
| os, | ||
| ): | ||
| """Shadow an import.""" | ||
| return os | ||
|
|
||
|
|
||
| def method_with_unused_param(unused_input): | ||
| """Provide and unused param.""" | ||
| return 5 | ||
|
|
||
|
|
||
| def method_with_parameters_on_multiple_lines(x, y): | ||
| """Provide parameters on multiple lines test case.""" | ||
| return x + y | ||
|
|
||
|
|
||
| def method_with_bad_names_on_single_line(myBadlyNamedParam, my_other_Bad_name): | ||
| """Provide parameters with bad names on single line.""" | ||
| return myBadlyNamedParam + my_other_Bad_name | ||
|
|
||
|
|
||
| def method_with_bad_names_on_multiple_lines_1( | ||
| myBadlyNamedParam, | ||
| ): | ||
| """Provide parameters with bad names on multiple lines.""" | ||
| return myBadlyNamedParam + 5 | ||
|
|
||
|
|
||
| def method_with_bad_names_on_multiple_lines_2( | ||
| myBadlyNamedParam, | ||
| my_other_Bad_name, | ||
| ): | ||
| """Provide parameters with bad names on multiple lines.""" | ||
| return myBadlyNamedParam + my_other_Bad_name | ||
|
|
||
|
|
||
| def method_withBadName_with_shadow(input): | ||
| """Shadow a builtin.""" | ||
| return input | ||
|
|
||
|
|
||
| def method_withBadName_with_unused_param(unused_input): | ||
| """Provide and unused param.""" | ||
| return 5 | ||
|
|
||
|
|
||
| def method_withBadName_with_parameters_on_multiple_lines(x, y): | ||
| """Provide parameters on multiple lines test case.""" | ||
| return x + y | ||
|
|
||
|
|
||
| def method_withBadName_with_bad_params_on_single_line(myBadlyNamedParam, my_other_Bad_name): | ||
| """Provide parameters with bad names on single line.""" | ||
| return myBadlyNamedParam + my_other_Bad_name | ||
|
|
||
|
|
||
| def method_withBadName_with_bad_params_on_multiple_lines_1( | ||
| myBadlyNamedParam, | ||
| ): | ||
| """Provide parameters with bad names on multiple lines.""" | ||
| return myBadlyNamedParam + 5 | ||
|
|
||
|
|
||
| def method_withBadName_with_bad_params_on_multiple_lines_2( | ||
| myBadlyNamedParam, | ||
| my_other_Bad_name, | ||
| ): | ||
| """Provide parameters with bad names on multiple lines.""" | ||
| return myBadlyNamedParam + my_other_Bad_name | ||
|
|
||
|
|
||
| def method_withBadName_andParams(my_normal_param, myBadlyNamedParam, my_other_Bad_param): | ||
| """Provide example where black will want to split out result.""" | ||
| return 5 + 7 | ||
|
|
||
|
|
||
| def method_withBadName_and_bad_param_with_long_name( | ||
| my_normal_param, myBadlyNamedParam, my_other_Bad_param | ||
| ): | ||
| """Provide example where black will want to split out result even more""" | ||
| return 5 + 7 |
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.
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.
Grammar error: "an examples" should be "an example"
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.
@copilot open a new pull request to apply changes switching all new instances of "Provide an examples" to "Provide an example"