From 7d6f7cbe71e51075bf029397c9dd29d876ae93a7 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 20 Aug 2024 15:45:43 -0700 Subject: [PATCH] add banned apis --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) 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"