Ignore stale directories (#23464)
* Ignore stale directories * Remove redundant tests * Revert "Remove redundant tests" * Print warning when skipping directories * Suggest to remove stale directory
This commit is contained in:
parent
0ecf152153
commit
2245ee98e3
1 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,13 @@ class Integration:
|
|||
if fil.is_file() or fil.name == '__pycache__':
|
||||
continue
|
||||
|
||||
init = fil / '__init__.py'
|
||||
if not init.exists():
|
||||
print("Warning: {} missing, skipping directory. "
|
||||
"If this is your development environment, "
|
||||
"you can safely delete this folder.".format(init))
|
||||
continue
|
||||
|
||||
integration = cls(fil)
|
||||
integration.load_manifest()
|
||||
integrations[integration.domain] = integration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue