From 605e6346f1b4a734fba11bd8ddf65a66fa12210c Mon Sep 17 00:00:00 2001 From: Adam Fekete Date: Tue, 15 Oct 2024 19:50:44 +0200 Subject: [PATCH] fix style --- notebooks/tutorial_stats.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/notebooks/tutorial_stats.ipynb b/notebooks/tutorial_stats.ipynb index bdf3c82..4c1b757 100644 --- a/notebooks/tutorial_stats.ipynb +++ b/notebooks/tutorial_stats.ipynb @@ -29,7 +29,7 @@ "source": [ "import json\n", "\n", - "with open('tutorials.json', 'r') as f:\n", + "with open('tutorials.json') as f:\n", " tutorials = json.load(f)['tutorials']\n", "\n", "print(tutorials)" @@ -345,6 +345,7 @@ "metadata": {}, "outputs": [], "source": [ + "# ruff: noqa: E501\n", "def build_new_tutorial(tutorial):\n", " new = {\n", " \"m_def\": \"nomad_aitoolkit.schema.AIToolkitNotebook\",\n", @@ -353,8 +354,8 @@ " 'date': tutorial['updated'],\n", "\n", " 'category': map_categories[tutorial['labels']['category'][0]],\n", - " 'methods': [ {'name': v } for v in tutorial['labels']['ai_methods'] ],\n", - " 'applications': [ {'name': v } for v in tutorial['labels']['application_system'] ],\n", + " 'methods': [{'name': v } for v in tutorial['labels']['ai_methods']],\n", + " 'applications': [{'name': v } for v in tutorial['labels']['application_system']],\n", " 'platform': 'Python'\n", " }\n", "\n",