We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ce0975 commit dae0d5fCopy full SHA for dae0d5f
1 file changed
scripts/validate_skills.py
@@ -98,9 +98,7 @@ def flag(file: Path, msg: str) -> None:
98
f'parent directory "{skill_dir.name}"',
99
)
100
101
- if not isinstance(description, str) or not description.strip():
102
- flag(file, "description is missing or not a non-empty string")
103
- else:
+ if isinstance(description, str) and description.strip():
104
if len(description) > DESC_MAX:
105
flag(
106
file,
@@ -113,6 +111,8 @@ def flag(file: Path, msg: str) -> None:
113
111
"(`description: >-` on its own line, with content "
114
112
"indented on the next line)",
115
+ else:
+ flag(file, "description is missing or not a non-empty string")
116
117
if problems:
118
for p in problems:
0 commit comments