From e0545ce043b1a92711ebf3204cffaedbb5f28770 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 12 Aug 2026 14:40:31 +0200 Subject: [PATCH 1/3] Check stdlib/venv with pyrefly --- pyrefly.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyrefly.toml b/pyrefly.toml index 8db32aa4e3a3..e8a2692bc319 100644 --- a/pyrefly.toml +++ b/pyrefly.toml @@ -3,6 +3,10 @@ # `respect-type-ignore-comments` setting in ty.toml. enabled-ignores = ["pyrefly"] +# pyrefly excludes "**/venv/**/*" by default, which matches "stdlib/venv", +# a proper stdlib module. We change this to only match ".venv" directories. +project-excludes = ["**/__pycache__", "**/.venv/**", "**/.[!/.]*/**"] + # These imports are intentionally optional and are also ignored by mypy and pyright. ignore-missing-imports = [ "branca", From 9ac508ecce3b4e06a6f62bdc72f412447e896e68 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 12 Aug 2026 14:43:52 +0200 Subject: [PATCH 2/3] Remove redundant entry --- pyrefly.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrefly.toml b/pyrefly.toml index e8a2692bc319..979b658639f1 100644 --- a/pyrefly.toml +++ b/pyrefly.toml @@ -4,8 +4,8 @@ enabled-ignores = ["pyrefly"] # pyrefly excludes "**/venv/**/*" by default, which matches "stdlib/venv", -# a proper stdlib module. We change this to only match ".venv" directories. -project-excludes = ["**/__pycache__", "**/.venv/**", "**/.[!/.]*/**"] +# a proper stdlib module. +project-excludes = ["**/__pycache__", "**/.[!/.]*/**"] # These imports are intentionally optional and are also ignored by mypy and pyright. ignore-missing-imports = [ From f84129aec01af9397b7c2fc121bf5040a5e73f47 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 12 Aug 2026 15:56:20 +0200 Subject: [PATCH 3/3] Add `disable-project-excludes-heuristics` --- pyrefly.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyrefly.toml b/pyrefly.toml index 979b658639f1..1da5e49c879e 100644 --- a/pyrefly.toml +++ b/pyrefly.toml @@ -6,6 +6,7 @@ enabled-ignores = ["pyrefly"] # pyrefly excludes "**/venv/**/*" by default, which matches "stdlib/venv", # a proper stdlib module. project-excludes = ["**/__pycache__", "**/.[!/.]*/**"] +disable-project-excludes-heuristics = true # These imports are intentionally optional and are also ignored by mypy and pyright. ignore-missing-imports = [