You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bugfix: Verify the element in item_context.args is of type ast.Name (#166)
* Add B017 - detection for a bad form of assertRaises
```with assertRaises(Exception):``` is basically a "catch 'em all" assert that casts far too broad of a net when it comes to detecting failures in code being tested. Assertions should be testing specific failure cases, not "did Python throw /any/ type of error?", and so the context manager form, or the assertRaisesRegex form are far better to use.
* Amend documentation, revert version change
* Bugfix: Add more conditionals to B017 checks
* Bugfix: Add more conditionals to B017 checks
Attempts to ensure we're only looking at Name type objects in the item_context.args, since apparently this code is still matching other objects that don't have an id attr.
* More updates to fix the B017 breakage
* Black things
* And change the line number again due to black
0 commit comments