fix: Python 3.11 compatibility for f-string backslash
- Extract newline character to variable before using in f-string - Fixes SyntaxError on Python 3.11 and earlier versions - Synced fix to all 11 design_system.py locations - Bump CLI version to 2.1.2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "uipro-cli",
|
"name": "uipro-cli",
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"description": "CLI to install UI/UX Pro Max skill for AI coding assistants",
|
"description": "CLI to install UI/UX Pro Max skill for AI coding assistants",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
|
|||||||
# Anti-patterns section
|
# Anti-patterns section
|
||||||
if anti_patterns:
|
if anti_patterns:
|
||||||
lines.append("### Avoid (Anti-patterns)")
|
lines.append("### Avoid (Anti-patterns)")
|
||||||
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
|
newline_bullet = '\n- '
|
||||||
|
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
# Pre-Delivery Checklist section
|
# Pre-Delivery Checklist section
|
||||||
|
|||||||
Reference in New Issue
Block a user