Skip to content

docs: add B004 and B007 usage examples - #643

Open
umrndem wants to merge 1 commit into
PyCQA:mainfrom
umrndem:docs-b004-b007-examples
Open

umrndem wants to merge 1 commit into
PyCQA:mainfrom
umrndem:docs-b004-b007-examples

Conversation

@umrndem

@umrndem umrndem commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Part of #620.

Add short avoid/prefer examples for checking whether an object is callable (B004) and naming a deliberately unused loop variable (B007). Both entries link to their existing test fixtures.

The README rendered with docutils. Running Flake8 on each snippet confirmed that the avoid examples report the intended warnings and the prefer examples are clean. All configured tox environments passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant