From 364679feabbbd0243ca97095cab1fe3dcbf782f4 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:49:17 +0100 Subject: [PATCH] [CI] Enable ruff `INP` to require `__init__.py` under `vllm/` (#56264) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d689d50d8d..1a77433f9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,8 @@ where = ["."] include = ["vllm*"] [tool.ruff.lint.per-file-ignores] +# `vllm` is the only installed package; everything else is standalone scripts +"!vllm/**" = ["INP"] "vllm/third_party/**" = ["ALL"] "vllm/version.py" = ["F401"] "vllm/_version.py" = ["ALL"] @@ -77,6 +79,8 @@ select = [ "I", # flake8-logging-format "G", + # flake8-no-pep420 + "INP", ] ignore = [ # star imports