views: optional index page registration #5582
Annotations
3 errors
Run tests:
invenio_app_rdm/config.py#L1
Black format check
--- /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/config.py 2025-01-14 16:21:19.593820+00:00
+++ /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/config.py 2025-01-14 16:25:18.979798+00:00
@@ -273,10 +273,11 @@
THEME_FRONTPAGE_TEMPLATE = "invenio_app_rdm/frontpage.html"
"""Frontpage template."""
THEME_HEADER_LOGIN_TEMPLATE = "invenio_app_rdm/header_login.html"
"""Header login base template."""
+
def _get_package_version():
from importlib.metadata import PackageNotFoundError, version
from packaging.version import Version
|
Run tests:
invenio_app_rdm/theme/views.py#L1
Black format check
--- /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/theme/views.py 2025-01-14 16:21:19.614821+00:00
+++ /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/theme/views.py 2025-01-14 16:25:39.341543+00:00
@@ -41,13 +41,11 @@
"invenio_app_rdm",
__name__,
template_folder="templates",
static_folder="static",
)
- blueprint.add_url_rule(
- **create_url_rule(routes["index"], default_view_func=index)
- )
+ blueprint.add_url_rule(**create_url_rule(routes["index"], default_view_func=index))
blueprint.add_url_rule(
**create_url_rule(routes["robots"], default_view_func=robots)
)
blueprint.add_url_rule(
**create_url_rule(routes["help_search"], default_view_func=help_search)
|
Run tests
Process completed with exit code 1.
|
Loading