From e1a6f7f083fd9ed0d7992c0b1ab0f446403fe22a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 13 Sep 2023 06:11:03 +0200 Subject: [PATCH] ruff: Disable Pytest checks We don't use pytest in our test machinery right now, and every new ruff version starts to complain about more things. The recent tasks container update started to fail our tests with > PT027 Use `pytest.raises` instead of unittest-style `assertRaises` Disable the PT rules again. Fixes #1207 --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 27bd70243..fc8ec59ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ select = [ "ISC", # flake8-implicit-str-concat "PLE", # pylint errors "PGH", # pygrep-hooks - "PT", # flake8-pytest-style "RSE", # flake8-raise "RUF", # ruff rules "T10", # flake8-debugger @@ -33,8 +32,6 @@ ignore = [ "E731", # Do not assign a `lambda` expression, use a `def` "FBT002", # Boolean default value in function definition "FBT003", # Boolean positional value in function call - "PT009", # Use a regular `assert` instead of unittest-style `assertEqual` - "PT011", # `pytest.raises(OSError)` is too broad ] # FIXME: we want 118, but needs fixing tests first line-length = 183