Skip to content

Commit 3192dbf

Browse files
committed
Fix ruff complaint
1 parent cf22adf commit 3192dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/autogen_rst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def make_rst(src_root, rst_root, clean=False, overwrite=False, package_prefix=""
114114
for f in files_in_dir
115115
if os.path.isdir(os.path.join(root, dirname, f)) and not f.startswith("_")
116116
]
117-
if not module_names and not "__init__.py" in files_in_dir:
117+
if not module_names and "__init__.py" not in files_in_dir:
118118
log.debug(f"Skipping {dirname} as it does not contain any modules or __init__.py")
119119
continue
120120
package_qualname = f"{base_package_qualname}.{dirname}"

0 commit comments

Comments
 (0)