diff --git a/pyproject.toml b/pyproject.toml index c6496e287c..32cceb4826 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,3 +92,7 @@ ignore = [ "NPY002", # new numpy random syntax is worse ] flake8-implicit-str-concat.allow-multiline=false + +[tool.ruff.lint.flake8-tidy-imports.banned-api] +"pytest.main".msg = "pytest.main requires special handling that is easy to mess up!" +"unittest".msg = "Use pytest"