ruff/crates
yt2b 22f237fec6
[flake8-bugbear] Avoid false positive for usage after continue (B031) (#10539)
## Summary

Closes #10337.

I've fixed the code to count usage of variable.
Usage count inside the block is reset when there is a following
statement.
- continue
- break
- return 

## Test Plan

Add test case.
2024-03-25 00:38:30 +00:00
..
ruff
ruff_benchmark
ruff_cache
ruff_dev
ruff_diagnostics
ruff_formatter
ruff_index
ruff_linter [flake8-bugbear] Avoid false positive for usage after continue (B031) (#10539) 2024-03-25 00:38:30 +00:00
ruff_macros
ruff_notebook
ruff_python_ast
ruff_python_codegen
ruff_python_formatter
ruff_python_index
ruff_python_literal
ruff_python_parser
ruff_python_resolver
ruff_python_semantic
ruff_python_stdlib
ruff_python_trivia
ruff_server
ruff_shrinking
ruff_source_file
ruff_text_size
ruff_wasm
ruff_workspace Refactor package_roots for readability. (#10543) 2024-03-24 12:02:30 +00:00