ruff/crates/ruff_linter/resources/test/fixtures/flake8_bugbear
Takayuki Maeda 43cda2dfe9
[ruff] Fix B004 to skip invalid hasattr/getattr calls (#20486)
## Summary

Fixes #20440

Fix B004 to skip invalid hasattr/getattr calls

- Add argument validation for `hasattr` and `getattr`
- Skip B004 rule when function calls have invalid argument patterns
2025-09-19 13:44:42 -05:00
..
B002.py
B003.py
B004.py [ruff] Fix B004 to skip invalid hasattr/getattr calls (#20486) 2025-09-19 13:44:42 -05:00
B005.py
B006_1.py
B006_1.pyi
B006_2.py
B006_3.py
B006_4.py
B006_5.py
B006_6.py
B006_7.py
B006_8.py
B006_B008.py
B006_extended.py
B007.py
B008_extended.py [flake8-bugbear] Exempt NewType calls where the original type is immutable (B008) (#15765) 2025-01-29 10:26:17 +00:00
B009_B010.py [flake8-bugbear] Ignore __debug__ attribute in B010 (#18357) 2025-05-28 16:24:52 -04:00
B011.py
B012.py
B013.py
B014.py
B015.ipynb
B015.py
B016.py
B017_0.py [flake8-bugbear] Fix B017 false negatives for keyword exception arguments (#19217) 2025-07-11 16:43:09 +00:00
B017_1.py [flake8-bugbear] Support non-context-manager calls in B017 (#19063) 2025-07-08 15:04:55 -04:00
B018.ipynb
B018.py
B019.py
B020.py
B021.py
B022.py
B023.py
B024.py
B025.py Improve error messages for except* (B025, B029, B030, B904) #14791 (#14815) 2024-12-08 17:37:34 +00:00
B026.py
B027.py
B027.pyi
B028.py [flake8-bugbear] Ignore B028 if skip_file_prefixes is present (#18047) 2025-05-12 17:06:51 -05: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 Fix F701 to F707 errors in tests (#19125) 2025-07-04 13:43:18 -05:00
B032.py
B033.py
B034.py
B035.py
B039.py
B039_extended.py
B901.py
B904.py Improve error messages for except* (B025, B029, B030, B904) #14791 (#14815) 2024-12-08 17:37:34 +00:00
B905.py
B909.py Fix false positive in for mutations in return statements (B909) (#18408) 2025-06-13 10:39:55 -04:00
B911.py [flake8-bugbear] itertools.batched() without explicit strict (B911) (#14408) 2024-12-10 08:39:46 +00:00
B912.py [flake8-bugbear] Add B912: map() without an explicit strict= parameter (#20429) 2025-09-19 12:54:44 -05:00
class_as_data_structure.py [flake8-bugbear] Do not raise error if keyword argument is present and target-python version is less or equals than 3.9 (B903) (#15549) 2025-01-17 12:48:14 +01:00