Cursor-rules
PromptBeginner5 minmarkdown
.cursorrules
.llmrules
0
**ALWAYS use `uv` to run Python code, NOT `python` or `python3`!**
Sign in to like and favorite skills
.llmrules
Code Style and Structure
Here are some pieces of information you need to know about this project:
ALWAYS use
to run Python code, NOT uv
or python
!python3
uv run <script.py>uv run -m <module>uv run python <script.py> (if explicitly needed)python <script.py>python3 <script.py>python src/fastled/cli.py, use uv run src/fastled/cli.pypython -m pytest, use uv run -m pytestpython3 build_exe.py, use uv run build_exe.pyuv for Python package and environment managementpython or python3 directly may use the wrong Python version or miss dependenciesuv ensures consistent execution with the project's specified Python version and dependenciesbash testuv run prefix for any Python commandsuv for all Python executionuvuv add <package>uv run <script>ALWAYS use the
function for emojis, NEVER hardcode emojis directly!EMO()
from fastled.emoji_util import EMO then EMO('⚠️', 'WARNING:')from fastled.emoji_util import safe_print for Unicode-safe printingprint("⚠️ Warning")EMO('⚠️', 'WARNING:')EMO('✅', 'SUCCESS:')EMO('❌', 'ERROR:')EMO('ℹ️', 'INFO:')EMO('🎭', '*')EMO('📦', '*')EMO() function provides fallback text for systems that don't support emojis# Good - with EMO function from fastled.emoji_util import EMO print(f"{EMO('⚠️', 'WARNING:')} Debug mode detected with Playwright installed") # Bad - hardcoded emoji print("⚠️ Debug mode detected with Playwright installed")
uv runuv run in the scriptuv run syntaxpython or python3 to use uv runEMO() function