summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJordan Wiens <github@psifertex.com>2026-01-17 13:43:43 -0500
committerJordan Wiens <github@psifertex.com>2026-01-17 13:43:43 -0500
commit1011a126cc04dfe7e5ad38614019a6699519fd0e (patch)
tree15a7a05f29be1b428ebfe2087fb105d0fdde59dd /scripts
parent0f66678e42bafcab220efdb7d2d57a202073e40f (diff)
exclude examples folder from rst validation
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_docstring_formatting.py4
1 files changed, 3 insertions, 1 deletions
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...")