diff --git a/docs/api_reference/create_api_rst.py b/docs/api_reference/create_api_rst.py index 9910739fbc2..88e45382144 100644 --- a/docs/api_reference/create_api_rst.py +++ b/docs/api_reference/create_api_rst.py @@ -351,7 +351,7 @@ def main() -> None: # Skip any hidden directories # Some of these could be present by mistake in the code base # e.g., .pytest_cache from running tests from the wrong location. - if not dir.startswith("."): + if dir.startswith("."): print("Skipping dir:", dir) continue