| 1 | initialize_command: ./setup.py build |
| 2 | initialize_command: ./setup.py gui |
| 3 | copy_resource: .build-cache |
| 4 | copy_resource: .cache |
| 5 | copy_resource: .ruff_cache |
| 6 | copy_resource: .venv |
| 7 | copy_resource: translations |
| 8 | copy_resource: resources |
| 9 | prepend_to_path: develop |
| 10 | pre_commit: ./setup.py fmt |
| 11 | |
| 12 | # System Instructions & Project Context |
| 13 | |
| 14 | ## Project Architecture & Stack |
| 15 | This is a multi-language repository. Adhere strictly to the idiomatic styling, patterns, and type safety of each respective language ecosystem present in the codebase. Do not mix patterns across language boundaries. |
| 16 | |
| 17 | ## Rules for Code Generation |
| 18 | - **Type Safety**: Enforce strict typing. Never use `any` or loose types. |
| 19 | - **Error Handling**: Implement explicit error handling. Avoid silent failures or empty catch blocks. |
| 20 | - **Dependency Minimization**: Use existing project utilities and native standard libraries before suggesting new external packages. |
| 21 | - **Local Context**: Search the codebase for existing patterns before writing boilerplate structure from scratch. |
| 22 | |
| 23 | ## Project Execution Workflows |
| 24 | You must always use the following custom scripts to build, verify, and test changes. Do not use generic toolchains such as `pytest`. |
| 25 | |
| 26 | ### 🛠️ Build Commands |
| 27 | Execute this command to compile all modules and check for syntax or type errors: |
| 28 | ```bash |
| 29 | ./setup.py build |
| 30 | ``` |
| 31 | |
| 32 | ### 🧪 Test Commands |
| 33 | Execute this command to run the test suite across all language domains: |
| 34 | ```bash |
| 35 | ./setup.py test |
| 36 | ``` |
| 37 | |
| 38 | To isolate testing to a specific test use, use the test name without the leading |
| 39 | "test" prefix. For example, to run a python test named test_my_function, use |
| 40 | ```bash |
| 41 | ./setup.py test my_function |
| 42 | ``` |
| 43 | |
| 44 | ## Verification Pipeline |
| 45 | Before declaring a task complete, you must follow this exact verification lifecycle: |
| 46 | 1. Run the local **Build Command** to guarantee zero compilation or compilation-stage type errors. |
| 47 | 2. Run the local **Test Command** |
| 48 | 3. If errors occur, analyze the output logs completely before writing a fix. Do not guess. |
| 49 | 4. Run `/setup.py check --fix && ./setup.py type_check` to ensure all files pass quality checks |