-
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
Implement ForVariableUsedAfterBlock
(based on wemake_python_styleguide
ControlVarUsedAfterBlockViolation
WPS441
)
#11769
Open
MadLittleMods
wants to merge
38
commits into
astral-sh:main
Choose a base branch
from
MadLittleMods:madlittlemods/control-var-used-after-block
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+314
−3
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c1091a1 - Browse repository at this point
Copy the full SHA c1091a1View commit details -
``` cargo run -p ruff -- check crates/ruff_linter/resources/test/fixtures/pylint/control_var_used_after_block.py --no-cache --select WPS441 ```
Configuration menu - View commit details
-
Copy full SHA for 261fbc3 - Browse repository at this point
Copy the full SHA 261fbc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bed302 - Browse repository at this point
Copy the full SHA 8bed302View commit details -
Configuration menu - View commit details
-
Copy full SHA for e85fe87 - Browse repository at this point
Copy the full SHA e85fe87View commit details
Commits on May 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eecc2af - Browse repository at this point
Copy the full SHA eecc2afView commit details
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3661066 - Browse repository at this point
Copy the full SHA 3661066View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59a2e3b - Browse repository at this point
Copy the full SHA 59a2e3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e491b3 - Browse repository at this point
Copy the full SHA 0e491b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ca72a6 - Browse repository at this point
Copy the full SHA 9ca72a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ad0df0 - Browse repository at this point
Copy the full SHA 0ad0df0View commit details
Commits on Jun 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eaf2a35 - Browse repository at this point
Copy the full SHA eaf2a35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 710d68c - Browse repository at this point
Copy the full SHA 710d68cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7de1cb - Browse repository at this point
Copy the full SHA a7de1cbView commit details -
Also we can rely on undefined detection rules for the case where people use a variable before a loop that is also defined as a loop var below.
Configuration menu - View commit details
-
Copy full SHA for f2a62bb - Browse repository at this point
Copy the full SHA f2a62bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97b165c - Browse repository at this point
Copy the full SHA 97b165cView commit details
Commits on Jul 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7ceb306 - Browse repository at this point
Copy the full SHA 7ceb306View commit details -
Configuration menu - View commit details
-
Copy full SHA for acc5b2a - Browse repository at this point
Copy the full SHA acc5b2aView commit details -
Merge branch 'main' into madlittlemods/control-var-used-after-block
Conflicts: crates/ruff_linter/src/codes.rs crates/ruff_python_semantic/src/model.rs
Configuration menu - View commit details
-
Copy full SHA for f5aa633 - Browse repository at this point
Copy the full SHA f5aa633View commit details
Commits on Aug 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 026a48f - Browse repository at this point
Copy the full SHA 026a48fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 544bbf5 - Browse repository at this point
Copy the full SHA 544bbf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d13a62 - Browse repository at this point
Copy the full SHA 2d13a62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d18c66 - Browse repository at this point
Copy the full SHA 1d18c66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7edd539 - Browse repository at this point
Copy the full SHA 7edd539View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5351952 - Browse repository at this point
Copy the full SHA 5351952View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19a0ab9 - Browse repository at this point
Copy the full SHA 19a0ab9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e2ece4 - Browse repository at this point
Copy the full SHA 9e2ece4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d675a03 - Browse repository at this point
Copy the full SHA d675a03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71ca5e1 - Browse repository at this point
Copy the full SHA 71ca5e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a11073 - Browse repository at this point
Copy the full SHA 8a11073View commit details
Commits on Aug 9, 2024
-
Remove
known_good_reference_node_ids
and iterating bindings in reverseThe [`known_good_reference_node_ids`](astral-sh@eaf2a35) evolved first to solve the shadowed cases but my [fix later on to allow previous references](astral-sh@a7de1cb) also ended up covering the shadowed cases without me realizing (much more elegant too). See: - astral-sh#11769 (comment) - astral-sh#11769 (comment)
Configuration menu - View commit details
-
Copy full SHA for e59efa2 - Browse repository at this point
Copy the full SHA e59efa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a76166 - Browse repository at this point
Copy the full SHA 5a76166View commit details -
Configuration menu - View commit details
-
Copy full SHA for 106e78a - Browse repository at this point
Copy the full SHA 106e78aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b3e4de - Browse repository at this point
Copy the full SHA 8b3e4deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59427f1 - Browse repository at this point
Copy the full SHA 59427f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63ecbfc - Browse repository at this point
Copy the full SHA 63ecbfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27dad4f - Browse repository at this point
Copy the full SHA 27dad4fView commit details -
Merge branch 'main' into madlittlemods/control-var-used-after-block
Conflicts: crates/ruff_linter/src/codes.rs
Configuration menu - View commit details
-
Copy full SHA for e7653df - Browse repository at this point
Copy the full SHA e7653dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bcc4fe - Browse repository at this point
Copy the full SHA 9bcc4feView commit details
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.