From 59b92b3522338aba99f131d4e8f23beb7fd66c3d Mon Sep 17 00:00:00 2001 From: Avasam Date: Wed, 10 Dec 2025 11:43:55 -0500 Subject: [PATCH] Document `*.pyw` is included by default in preview (#21885) Document `*.pyw` is included by default in preview mode. Originally requested in https://github.com/astral-sh/ruff/issues/13246 and added in https://github.com/astral-sh/ruff/pull/20458 Co-authored-by: Amethyst Reese --- docs/configuration.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/configuration.md b/docs/configuration.md index 3420611e18..a88f71488f 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -352,6 +352,7 @@ For example, without `force-exclude` enabled, `ruff check /path/to/excluded/file ### Default inclusions By default, Ruff will discover files matching `*.py`, `*.pyi`, `*.ipynb`, or `pyproject.toml`. +In [preview](preview.md) mode, Ruff will also discover `*.pyw` by default. To lint or format files with additional file extensions, use the [`extend-include`](settings.md#extend-include) setting. You can also change the default selection using the [`include`](settings.md#include) setting.