-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix false positive when testing for-loops for unbalanced unpacking (W0644) #8892
Fix false positive when testing for-loops for unbalanced unpacking (W0644) #8892
Commits on Jul 27, 2023
-
When checking for loops for unbalanced dict unpacking, compare the nu…
…mber of targets to the size of each value, instead of the number of values, since the for loop will iterate the values and unpack each in turn onto the targets.
Configuration menu - View commit details
-
Copy full SHA for 519c09a - Browse repository at this point
Copy the full SHA 519c09aView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for f028970 - Browse repository at this point
Copy the full SHA f028970View commit details -
Configuration menu - View commit details
-
Copy full SHA for 877afaf - Browse repository at this point
Copy the full SHA 877afafView commit details -
Fixed support for Dict values when checking for unbalanced-dict-unpac…
…king. The original implementation would use `NodeNG.get_children()` which would return the AST subnodes for the Dict (i.e. all the keys and values), and not just the keys.
Configuration menu - View commit details
-
Copy full SHA for d8cbf40 - Browse repository at this point
Copy the full SHA d8cbf40View commit details -
Added support for star-unpacking when checking for unbalanced-dict-un…
…packing. Star unpacking requires there to be at least as many values to unpack as targets, so the unpacking is considered valid if the number of targets equal the number of values or if it's a star-unpacking with at least as many values as targets
Configuration menu - View commit details
-
Copy full SHA for 4c2cd8a - Browse repository at this point
Copy the full SHA 4c2cd8aView commit details -
Merge branch 'false-positive-unbalanced-dict-unpacking' of https://gi…
…thub.com/Neowizard/pylint into false-positive-unbalanced-dict-unpacking
Configuration menu - View commit details
-
Copy full SHA for c10f299 - Browse repository at this point
Copy the full SHA c10f299View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for cfc4907 - Browse repository at this point
Copy the full SHA cfc4907View commit details -
Added test case to cover subscripts/splices when checking for unbalan…
…ced-dict-unpacking to complete test code coverage
Configuration menu - View commit details
-
Copy full SHA for 31bdca5 - Browse repository at this point
Copy the full SHA 31bdca5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71e54a8 - Browse repository at this point
Copy the full SHA 71e54a8View commit details -
Merge branch 'false-positive-unbalanced-dict-unpacking' of https://gi…
…thub.com/Neowizard/pylint into false-positive-unbalanced-dict-unpacking
Configuration menu - View commit details
-
Copy full SHA for 4892c97 - Browse repository at this point
Copy the full SHA 4892c97View commit details
Commits on Jul 30, 2023
-
Fixed but in how we test the length of a splice - was missing `Const.…
…value`. Also refactored the code a bit for readability
Configuration menu - View commit details
-
Copy full SHA for e21bc39 - Browse repository at this point
Copy the full SHA e21bc39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 181f07d - Browse repository at this point
Copy the full SHA 181f07dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07558f3 - Browse repository at this point
Copy the full SHA 07558f3View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for e29fea9 - Browse repository at this point
Copy the full SHA e29fea9View commit details -
Configuration menu - View commit details
-
Copy full SHA for de1206d - Browse repository at this point
Copy the full SHA de1206dView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for ed8d7d1 - Browse repository at this point
Copy the full SHA ed8d7d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72eb2e6 - Browse repository at this point
Copy the full SHA 72eb2e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc98d03 - Browse repository at this point
Copy the full SHA bc98d03View commit details -
Merge branch 'false-positive-unbalanced-dict-unpacking' of https://gi…
…thub.com/Neowizard/pylint into false-positive-unbalanced-dict-unpacking
Configuration menu - View commit details
-
Copy full SHA for 8ac683e - Browse repository at this point
Copy the full SHA 8ac683eView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 28ad6fb - Browse repository at this point
Copy the full SHA 28ad6fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3151e25 - Browse repository at this point
Copy the full SHA 3151e25View commit details -
Merge branch 'false-positive-unbalanced-dict-unpacking' of https://gi…
…thub.com/Neowizard/pylint into false-positive-unbalanced-dict-unpacking
Configuration menu - View commit details
-
Copy full SHA for c98b889 - Browse repository at this point
Copy the full SHA c98b889View commit details -
Configuration menu - View commit details
-
Copy full SHA for 197746c - Browse repository at this point
Copy the full SHA 197746cView commit details
Commits on Aug 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a0471d4 - Browse repository at this point
Copy the full SHA a0471d4View commit details
Commits on Aug 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bc65c3c - Browse repository at this point
Copy the full SHA bc65c3cView commit details
Commits on Aug 14, 2023
-
Merge remote-tracking branch 'upstream/main' into false-positive-unba…
…lanced-dict-unpacking
Configuration menu - View commit details
-
Copy full SHA for f721da9 - Browse repository at this point
Copy the full SHA f721da9View commit details -
Detect incidents of missing call to
items
during unbalanced-dict-un……packing check, so we can report just the more specific missing `items` calls.
Configuration menu - View commit details
-
Copy full SHA for 49888a1 - Browse repository at this point
Copy the full SHA 49888a1View commit details
Commits on Aug 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 51bf4bd - Browse repository at this point
Copy the full SHA 51bf4bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f63349a - Browse repository at this point
Copy the full SHA f63349aView commit details
Commits on Aug 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 766d13b - Browse repository at this point
Copy the full SHA 766d13bView commit details
Commits on Aug 30, 2023
-
Merge remote-tracking branch 'upstream/main' into false-positive-unba…
…lanced-dict-unpacking
Configuration menu - View commit details
-
Copy full SHA for bd3044d - Browse repository at this point
Copy the full SHA bd3044dView commit details -
Explicitly state the cases handled by the end of
visit_for
in `vari……ables.py`. Also, noted in unit-test that unbalanced-dict-unpacking is supressed for cases of dict-items-missing-iter
Configuration menu - View commit details
-
Copy full SHA for f6becf1 - Browse repository at this point
Copy the full SHA f6becf1View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 3989730 - Browse repository at this point
Copy the full SHA 3989730View commit details -
Refactored conditions for readability when detecting ubnalanced-dict-…
…unpacking Co-authored-by: Mark Byrne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fb2f253 - Browse repository at this point
Copy the full SHA fb2f253View commit details
Commits on Sep 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0fe5f2e - Browse repository at this point
Copy the full SHA 0fe5f2eView commit details