diff options
| author | Jordan Wiens <github@psifertex.com> | 2026-01-17 13:43:43 -0500 |
|---|---|---|
| committer | Jordan Wiens <github@psifertex.com> | 2026-01-17 13:43:43 -0500 |
| commit | 1011a126cc04dfe7e5ad38614019a6699519fd0e (patch) | |
| tree | 15a7a05f29be1b428ebfe2087fb105d0fdde59dd /scripts | |
| parent | 0f66678e42bafcab220efdb7d2d57a202073e40f (diff) | |
exclude examples folder from rst validation
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check_docstring_formatting.py | 4 |
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...") |
