Skip to content

Commit 141a1e9

Browse files
Add project rules for Trae IDE
Document correct lint commands (glob-based, not shell wildcards), build instructions, and project architecture for future AI sessions.
1 parent ca0c64f commit 141a1e9

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.trae/rules/project_rules.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SexyUI Editor - Project Rules
2+
3+
## Overview
4+
A PyQt6-based visual UI editor for Plants vs. Zombies Sexy framework.
5+
Supports C++ (QE/Portable) and C# (.NET) code generation.
6+
7+
## Key Commands
8+
9+
### Syntax Check (use glob, NOT shell wildcards)
10+
```powershell
11+
python -c "import glob, py_compile; [py_compile.compile(f, doraise=True) for f in glob.glob('core/**/*.py', recursive=True)]"
12+
python -c "import glob, py_compile; [py_compile.compile(f, doraise=True) for f in glob.glob('ui/**/*.py', recursive=True)]"
13+
python -c "import glob, py_compile; [py_compile.compile(f, doraise=True) for f in glob.glob('SexyUIExtensions/**/*.py', recursive=True)]"
14+
```
15+
16+
### Install Dependencies
17+
```powershell
18+
pip install -r requirements.txt
19+
```
20+
21+
### Build (Nuitka)
22+
```powershell
23+
build.bat
24+
```
25+
26+
## Git Rules
27+
- Commit messages in English
28+
- Do NOT push unless explicitly asked
29+
- Do NOT commit generated output files
30+
31+
## Architecture
32+
- `core/` - Core business logic (code generators, project model, resource management)
33+
- `ui/` - PyQt6 UI components (canvas, property panel, event config)
34+
- `Content/` - .NET game resources (excluded from git)
35+
- `docs/CORE_ARCHITECTURE.md` - Detailed architecture documentation

0 commit comments

Comments
 (0)