Skip to content

Commit

Permalink
docs: Respect ignore_folders in getsubpackages
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Nov 7, 2024
1 parent f2f7f19 commit 5d44ebd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/diracdoctools/cmd/codeReference.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def getsubpackages(self, abspath, direc):
if dire.lower() == "docs" or "/docs" in dire.lower():
LOG.debug("Skipping docs directory: %s/%s", abspath, dire)
continue
if any(f.lower() in abspath.lower() for f in self.config.code_ignoreFolders):
LOG.debug("Skipping subpackages: %s/%s", abspath, dire)
continue
if os.path.exists(os.path.join(self.config.sourcePath, abspath, dire, "__init__.py")):
packages.append(os.path.join(dire))
return packages
Expand Down

0 comments on commit 5d44ebd

Please sign in to comment.