From 380bfe5b28f79115c002745d7c03e8adf6440111 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 8 Feb 2023 10:50:53 +0100 Subject: [PATCH] Enable Ruff PT002, PT003 (#87686) --- tests/ruff.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ruff.toml b/tests/ruff.toml index e7d0818e8dc..71ef9b1cccf 100644 --- a/tests/ruff.toml +++ b/tests/ruff.toml @@ -3,6 +3,8 @@ extend = "../pyproject.toml" extend-select = [ "PT001", # Use @pytest.fixture without parentheses + "PT002", # Configuration for fixture specified via positional args, use kwargs + "PT003", # The scope='function' is implied in @pytest.fixture() "PT013", # Found incorrect pytest import, use simple import pytest instead "PT015", # Assertion always fails, replace with pytest.fail() "PT021", # use yield instead of request.addfinalizer