From dca4811c5fb666d6655c2ab476ff21699c706bb3 Mon Sep 17 00:00:00 2001 From: Maciej Lisiewski Date: Sat, 10 Oct 2026 16:15:28 +0200 Subject: [PATCH] ci: duplicate required subset of pyproject rules in ruff conf --- ruff.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ruff.toml b/ruff.toml index 750e06bb90..2ccb9d89cb 100644 --- a/ruff.toml +++ b/ruff.toml @@ -457,5 +457,18 @@ select = [ "TID251" ] +[lint.flake8-tidy-imports.banned-api] +"pm.uv".msg = "Use PM's semantic Python operations, not an installer executable." +"pm.client.uv".msg = "Use PM's semantic Python operations." +"pm.install.uv".msg = "The raw uv bridge was removed; use PM operations." +"pm._uv".msg = "Tool acquisition is private to PM." +"pm.environment".msg = "The environment engine is private; use PM operations." +"pm.runtime_stage".msg = "PM stages its own worker runtime; consumers call pm operations." + +[lint.per-file-ignores] +"apps/desktop/electron/fixtures/**" = ["TID251"] +"pm/**" = ["TID251"] +"tests/pm/**" = ["TID251"] + [lint.mccabe] max-complexity = 20 \ No newline at end of file