Return True if the given directory is an example directory.
(directory: str)
| 48 | |
| 49 | |
| 50 | def should_validate(directory: str) -> bool: |
| 51 | """Return True if the given directory is an example directory.""" |
| 52 | return ( |
| 53 | os.path.isdir(os.path.join(EXAMPLES_DIR, directory)) |
| 54 | and not directory.startswith(".") |
| 55 | and not directory.startswith("_") |
| 56 | and directory not in FILTERLIST |
| 57 | ) |
| 58 | |
| 59 | |
| 60 | def get_directories(base_path: str) -> list[str]: |