-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#418: Modify B017 to no longer have a false negative when raises() is…
… imported directly from pytest (#424) * handle ast.ImportFrom nodes in b005 check to add this to the list of imports * work out logic to determine if ast.Name node "raises" correspondes to the pytest.raises package * integrate new logic for B017 to the check itself * add check for matches keyword to prevent B017; whitespace corrections to pass tests * update tests to capture changes to B017 logic * files modified by pre-commit
- Loading branch information
1 parent
907e0dd
commit 393fea1
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters