8Provide shared default directory exclusion lists for linter and exporter.
12- Define common exclusion directories used by both the linter and the source exporter.
13- Provide tool-specific supersets for each consumer.
14- Centralise wildcard (substring) exclusion patterns.
26- All sets are frozen at module level; consumers copy before mutating.
27- Linter and exporter import from here instead of defining their own constants.
31COMMON_EXCLUDE_DIRS = {
37 "copied_python_files",
56LINTER_EXCLUDE_DIRS = COMMON_EXCLUDE_DIRS | {
62EXPORTER_EXCLUDE_DIRS = COMMON_EXCLUDE_DIRS | {
77WILDCARD_EXCLUDE_DIRS = [
"cache",
"_source",
"_skeleton",
"logs",
"_exports",
"_build",
".venv",
"venv"]
83NEVER_EXPORT_FILE_PATTERNS = [
106GIT_IGNORE_DEFAULTS: tuple[str, ...] = (
119 "# Distribution / packaging",
125 ".formatter_archive/",
129 "# Sphinx / docs build",
132 "docs/_autosummary/",
135 "# Testing / coverage",