You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% if '_' in project_slug or ' ' in project_slug or '.' in project_slug %}
21
-
The project slug should not contain underscores, spaces or dots.
22
-
{% endif %}
23
-
{% if extension_type == 'panel' and not project_slug.startswith('panel-') %}
24
-
The project slug should start with `panel-`.
25
-
{% endif %}
26
-
{% if extension_type == 'lumen' and not project_slug.startswith('lumen-') %}
27
-
The project slug should start with `lumen-`.
28
-
{% endif %}
19
+
validator: "{% if '_' in project_slug or ' ' in project_slug or '.' in project_slug %}The project slug should not contain underscores, spaces or dots.{% endif %}{% if extension_type == 'panel' and not project_slug.startswith('panel-') %}The project slug should start with `panel-`.{% endif %}{% if extension_type == 'lumen' and not project_slug.startswith('lumen-') %}The project slug should start with `lumen-`.{% endif %}"
{% if not github_url.startswith('https://github.com/') or github_url.endswith('.git') %}
59
-
The GitHub URL should start with `https://github.com/` and not end with `.git`, for example `https://github.com/LandoCalrissian/python-project`.
60
-
{% endif %}
48
+
validator: "{% if not github_url.startswith('https://github.com/') or github_url.endswith('.git') %}The GitHub URL should start with `https://github.com/` and not end with `.git`, for example `https://github.com/LandoCalrissian/python-project`.{% endif %}"
61
49
62
50
docs_url:
63
51
type: str
@@ -68,13 +56,12 @@ minimal_python_version:
68
56
type: str
69
57
help: What is the minimal Python version you want to support?
70
58
choices:
71
-
{%- if extension_type == 'panel' %}
72
59
- py310
73
-
{%- endif %}
74
60
- py311
75
61
- py312
76
62
- py313
77
63
default: "{{ 'py311' if extension_type == 'lumen' else 'py310' }}"
64
+
validator: "{% if extension_type == 'lumen' and minimal_python_version == 'py310' %}Lumen requires Python >= 3.11. Please select py311 or higher.{% endif %}"
0 commit comments