From 1011a126cc04dfe7e5ad38614019a6699519fd0e Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sat, 17 Jan 2026 13:43:43 -0500 Subject: exclude examples folder from rst validation --- scripts/check_docstring_formatting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/check_docstring_formatting.py b/scripts/check_docstring_formatting.py index 51ad2522..9f91d082 100755 --- a/scripts/check_docstring_formatting.py +++ b/scripts/check_docstring_formatting.py @@ -295,7 +295,9 @@ def main(): print(f"Error: Directory {python_dir} does not exist", file=sys.stderr) sys.exit(1) - files_to_check = find_python_files(python_dir) + # Exclude examples subfolder when running with default path + files_to_check = [f for f in find_python_files(python_dir) + if 'examples' not in f.parts] if args.verbose: print(f"Checking Python files...") -- cgit v1.3.1