diff --git a/pyproject.toml b/pyproject.toml index 2ade0bc8..86fb6d96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -219,7 +219,6 @@ ignore = [ ################################################################################################## # Rules below needs to be Investigated # ################################################################################################## - "PT", # flake8-pytest-style "ERA", # eradicate commented-out code "SLF001", # flake8-self "EM", # flake8-errmsg @@ -292,6 +291,7 @@ max-complexity = 17 "ANN202", # Missing return type annotation for private function "ANN401", # Dynamically typed expressions (typing.Any) are disallowed "ASYNC240", # Async functions should not use pathlib.Path methods, use trio.Path or anyio.path + "PT013", # Incorrect import of `pytest`; use `import pytest` instead ] "infrahub_sdk/client.py" = [ @@ -347,6 +347,10 @@ max-complexity = 17 "S106", # Possible hardcoded password assigned to argument "ARG001", # Unused function argument "ARG002", # Unused method argument + "PT006", # Wrong type passed to first argument of `pytest.mark.parametrize`; expected `tuple` + "PT011", # `pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception + "PT012", # `pytest.raises()` block should contain a single simple statement + "PT013", # Incorrect import of `pytest`; use `import pytest` instead ] # tests/integration/