-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable flake8-pytest-style plugin for ruff (#2324)
Enable flake8-pytest-style plugin for ruff Warnings fixed: * PT003 `scope='function'` is implied in `@pytest.fixture()` * PT006 Wrong type passed to first argument of `@pytest.mark.parametrize`; expected `tuple` * PT007 Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple` * PT011 `pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception * PT013 Incorrect import of `pytest`; use `import pytest` instead * PT017 Found assertion on exception `e` in `except` block, use `pytest.raises()` instead * PT018 Assertion should be broken down into multiple parts * PT021 Use `yield` instead of `request.addfinalizer` Statistics: 26 PT003 [*] pytest-extraneous-scope-function 5 PT017 [ ] pytest-assert-in-except 3 PT006 [*] pytest-parametrize-names-wrong-type 2 PT007 [*] pytest-parametrize-values-wrong-type 2 PT021 [ ] pytest-fixture-finalizer-callback 1 PT011 [ ] pytest-raises-too-broad 1 PT013 [ ] pytest-incorrect-pytest-import 1 PT018 [ ] pytest-composite-assertion
- Loading branch information
Showing
19 changed files
with
81 additions
and
92 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
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
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
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
Oops, something went wrong.