From 74009870abb26087027acfb8fcc2e931196baed9 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 26 Jul 2026 21:28:30 -0700 Subject: [PATCH] cleanup banned APIs --- pyproject.toml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6bcbdafbe..d058085b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,11 +129,7 @@ line-length = 160 lint.flake8-implicit-str-concat.allow-multiline = false [tool.ruff.lint.flake8-tidy-imports.banned-api] -"pytest".msg = "Use unittest" -"pytest.main".msg = "pytest.main requires special handling that is easy to mess up!" -"time.time".msg = "Use time.monotonic" # time.time can skip due to its reference clock, you probably want a monotonic clock - -# raylib banned APIs +"time.time".msg = "Use time.monotonic. time.time can skip due to its reference clock, you probably want a monotonic clock" "pyray.measure_text_ex".msg = "Use openpilot.system.ui.lib.text_measure" "pyray.is_mouse_button_pressed".msg = "This can miss events. Use Widget._handle_mouse_press" "pyray.is_mouse_button_released".msg = "This can miss events. Use Widget._handle_mouse_release"