cleanup banned APIs

This commit is contained in:
Adeeb Shihadeh
2026-07-26 21:28:30 -07:00
parent 1d7b6f0f9f
commit 74009870ab
+1 -5
View File
@@ -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"