Python execution with uv, emoji handling, and testing workflow for FastLED web compiler project
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
Guidelines for working with the FastLED WASM project, a lightning-fast web compiler with 3-second compile and 1-second deploy times.
**ALWAYS use `uv` to run Python code, NEVER `python` or `python3`**
This project uses `uv` for Python package and environment management. Using `python` directly may use the wrong version or miss dependencies.
**ALWAYS use the `EMO()` function for emojis, NEVER hardcode emojis directly**
Windows cmd.exe has poor Unicode support and crashes on raw emojis. The `EMO()` function provides fallback text for systems without emoji support.
Use `uv run` for ALL Python execution:
```bash
uv run <script.py>
uv run -m <module>
uv run python <script.py>
```
**Examples:**
Run unit tests using the project's test script:
```bash
bash test
```
For manual testing, always prefix Python commands with `uv run`.
Import and use the `EMO()` function for all emoji output:
```python
from fastled.emoji_util import EMO
print(f"{EMO('⚠️', 'WARNING:')} Debug mode detected")
print(f"{EMO('✅', 'SUCCESS:')} Build completed")
print(f"{EMO('❌', 'ERROR:')} Compilation failed")
print(f"{EMO('ℹ️', 'INFO:')} Starting process")
print(f"{EMO('🎭', '*')} Browser launched")
print(f"{EMO('📦', '*')} Installing dependencies")
```
For Unicode-safe printing:
```python
from fastled.emoji_util import safe_print
safe_print("Text with potential Unicode issues")
```
1. **Install dependencies:**
```bash
uv add <package>
```
2. **Run scripts:**
```bash
uv run <script>
```
3. **Virtual environment:**
- Let `uv` manage the environment automatically
- No need to manually activate/deactivate
When you find scripts using `python` or `python3`, update them to use `uv run`:
```bash
python build.py
uv run build.py
```
When documenting Python usage:
**Why `uv`?**
**Why `EMO()` function?**
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/fastled-wasm-development-guidelines/raw