ruff/crates/ruff_linter/resources/test/fixtures/flake8_bugbear
InSync 4b8c815b27
[flake8-bugbear] itertools.batched() without explicit strict (B911) (#14408)
## Summary

Resolves #14387.

## Test Plan

`cargo nextest run` and `cargo insta test`.

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
2024-12-10 08:39:46 +00:00
..
B002.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B003.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B004.py Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
B005.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B006_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B006_1.pyi [flake8-bugbear] - do not run mutable-argument-default on stubs (B006) (#14058) 2024-11-02 22:48:48 -04:00
B006_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B006_3.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B006_4.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B006_5.py Ensure that B006 autofixes are inserted after imports (#7629) 2023-09-27 01:26:29 +00:00
B006_6.py Ensure that B006 autofixes are inserted after imports (#7629) 2023-09-27 01:26:29 +00:00
B006_7.py Ensure that B006 autofixes are inserted after imports (#7629) 2023-09-27 01:26:29 +00:00
B006_8.py [flake8-bugbear] Treat raise NotImplemented-only bodies as stub functions (#10990) 2024-04-17 14:06:40 +00:00
B006_B008.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B006_extended.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B007.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B008_extended.py Resolve classes and functions relative to script name (#10965) 2024-04-18 01:42:50 +00:00
B009_B010.py Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
B011.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B012.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B013.py [flake8-bugbear] Allow singleton tuples with starred expressions in B013 (#12484) 2024-07-24 15:19:30 +02:00
B014.py Insert necessary padding in B014 fixes (#7699) 2023-09-28 21:11:09 +00:00
B015.ipynb Avoid B015,B018 for last expression in a cell (#8815) 2023-11-22 15:33:23 +00:00
B015.py [flake8_bugbear] message based on expression location [B015] (#12944) 2024-08-17 13:54:19 +02:00
B016.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B017.py Avoid short circuiting B017 for multiple context managers (#13609) 2024-10-03 15:35:05 +05:30
B018.ipynb Avoid B015,B018 for last expression in a cell (#8815) 2023-11-22 15:33:23 +00:00
B018.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B019.py Improve handling of metaclasses in various linter rules (#12579) 2024-07-30 14:48:36 +01:00
B020.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B021.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B022.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B023.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B024.py Ignore non-abstract class attributes when enforcing B024 (#11210) 2024-04-30 09:01:08 -07:00
B025.py Improve error messages for except* (B025, B029, B030, B904) #14791 (#14815) 2024-12-08 17:37:34 +00:00
B026.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B027.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B027.pyi Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B028.py [flake8-bugbear] Skip B028 if warnings.warn is called with *args or **kwargs (#14870) 2024-12-09 14:32:37 +00:00
B029.py Improve error messages for except* (B025, B029, B030, B904) #14791 (#14815) 2024-12-08 17:37:34 +00:00
B030.py Improve error messages for except* (B025, B029, B030, B904) #14791 (#14815) 2024-12-08 17:37:34 +00:00
B031.py [flake8-bugbear] Avoid false positive for usage after continue (B031) (#10539) 2024-03-25 00:38:30 +00:00
B032.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B033.py Detect items that hash to same value in duplicate sets (#14064) 2024-11-03 18:49:11 +00:00
B034.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
B035.py Recategorize static-key-dict-comprehension from RUF011 to B035 (#9428) 2024-02-01 13:35:02 -06:00
B039.py [flake8-bugbear] Fix mutable-contextvar-default (B039) to resolve annotated function calls properly (#14532) 2024-11-23 21:29:25 -05:00
B039_extended.py [flake8-bugbear] Implement mutable-contextvar-default (B039) (#12113) 2024-07-01 01:55:49 +00:00
B901.py [flake8-bugbear] Implement return-in-generator (B901) (#11644) 2024-05-31 21:48:36 +00:00
B904.py Improve error messages for except* (B025, B029, B030, B904) #14791 (#14815) 2024-12-08 17:37:34 +00:00
B905.py Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
B909.py [flake8-bugbear] Treat return as equivalent to break (B909) (#12646) 2024-08-02 18:14:17 -04:00
B911.py [flake8-bugbear] itertools.batched() without explicit strict (B911) (#14408) 2024-12-10 08:39:46 +00:00