Skip to content

#525 disable B042#527

Closed
shg-rtx wants to merge 1 commit into
PyCQA:mainfrom
shg-rtx:main
Closed

#525 disable B042#527
shg-rtx wants to merge 1 commit into
PyCQA:mainfrom
shg-rtx:main

Conversation

@shg-rtx
Copy link
Copy Markdown

@shg-rtx shg-rtx commented Nov 5, 2025

As discussed in #525 until better documentation and fix for false positives are solved for B042, it will be disabled.

Sorry if this is not the correct way of disabling things in Flake8, I have no experience in flake8 development.

Copy link
Copy Markdown
Collaborator

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what you'd do on your project side itself to disable the check.

This will only disable it for the flake8-bugbear project itself, we need to change code to make it not enable by default for users by default.

@shg-rtx
Copy link
Copy Markdown
Author

shg-rtx commented Nov 6, 2025

@cooperlees So there is NO nice proper way of just deactivating it without making it? I actually have to go in an uncomment self.check_for_b042??

@cooperlees
Copy link
Copy Markdown
Collaborator

Correct, cause in code all non B9XX checks are enabled/on by default and each project can disable it via this config method. So for your project(s) if you did this it would be disabled ...

@cooperlees
Copy link
Copy Markdown
Collaborator

Closing in favor of #528

@cooperlees cooperlees closed this Nov 9, 2025
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.

2 participants