Option C Tools
Loading...
Searching...
No Matches
exclusions Namespace Reference

Variables

dict COMMON_EXCLUDE_DIRS
dict LINTER_EXCLUDE_DIRS
dict EXPORTER_EXCLUDE_DIRS
list WILDCARD_EXCLUDE_DIRS = ["cache", "_source", "_skeleton", "logs", "_exports", "_build", ".venv", "venv"]
list NEVER_EXPORT_FILE_PATTERNS
tuple GIT_IGNORE_DEFAULTS

Detailed Description

Purpose
-------
Provide shared default directory exclusion lists for linter and exporter.

Responsibilities
----------------
- Define common exclusion directories used by both the linter and the source exporter.
- Provide tool-specific supersets for each consumer.
- Centralise wildcard (substring) exclusion patterns.

Diagnostics
-----------
Domain: OCT-CORE
Levels:
    L2 — lifecycle
    L3 — semantic details
    L4 — deep tracing

Contracts
---------
- All sets are frozen at module level; consumers copy before mutating.
- Linter and exporter import from here instead of defining their own constants.

Variable Documentation

◆ COMMON_EXCLUDE_DIRS

dict exclusions.COMMON_EXCLUDE_DIRS
Initial value:
1= {
2 ".git",
3 "__pycache__",
4 "Old",
5 "old",
6 ".linter_archive",
7 "copied_python_files",
8 "data",
9 "data_raw",
10 "raw_data",
11 "data.bk",
12 "flow_charts",
13 "dot_files",
14 "dev-tools",
15 # Virtual environment directories — must be excluded to avoid scanning
16 # thousands of third-party library files on every lint or export run.
17 ".venv",
18 "venv",
19 "env",
20}

Definition at line 31 of file exclusions.py.

◆ EXPORTER_EXCLUDE_DIRS

dict exclusions.EXPORTER_EXCLUDE_DIRS
Initial value:
1= COMMON_EXCLUDE_DIRS | {
2 "Code Reviews",
3 "dataset_library",
4 "doxygen_work_dir",
5 "doxygen_output",
6 "logs",
7 "cache",
8 "_backup",
9 "old_backup",
10}

Definition at line 62 of file exclusions.py.

◆ GIT_IGNORE_DEFAULTS

tuple exclusions.GIT_IGNORE_DEFAULTS

Definition at line 106 of file exclusions.py.

◆ LINTER_EXCLUDE_DIRS

dict exclusions.LINTER_EXCLUDE_DIRS
Initial value:
1= COMMON_EXCLUDE_DIRS | {
2 "Code Reviews",
3 "fixtures",
4}

Definition at line 56 of file exclusions.py.

◆ NEVER_EXPORT_FILE_PATTERNS

list exclusions.NEVER_EXPORT_FILE_PATTERNS
Initial value:
1= [
2 ".env", ".env.*", # Environment variable files
3 "*.pem", "*.key", # Private key files
4 "credentials.json", # Service account credentials
5 "secrets.json", # Application secrets
6 "secrets.yaml", # Application secrets (YAML)
7 "secrets.yml", # Application secrets (YAML)
8]

Definition at line 83 of file exclusions.py.

◆ WILDCARD_EXCLUDE_DIRS

list exclusions.WILDCARD_EXCLUDE_DIRS = ["cache", "_source", "_skeleton", "logs", "_exports", "_build", ".venv", "venv"]

Definition at line 77 of file exclusions.py.