Skip to content

Commit

Permalink
style: fix sonarcloud warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Aug 21, 2024
1 parent f9d69b5 commit c86057f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions notebook/dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@
"org = g.get_organization(org_name)\n",
"repos = org.get_repos()\n",
"\n",
"# constants\n",
"text_template = '%{text}'\n",
"uno_base_url = 'https://app.lizardbyte.dev/uno'\n",
"\n",
"# all readthedocs projects\n",
"# readthedocs data\n",
"readthedocs_data_url = f'{uno_base_url}/readthedocs/projects.json'\n",
"readthedocs_response = requests.get(readthedocs_data_url)\n",
"if not readthedocs_response.ok:\n",
" raise Exception(\"Failed to fetch data from uno\")\n",
" raise LookupError(\"Failed to fetch data from uno\")\n",
"readthedocs_data = readthedocs_response.json()\n",
"\n",
"# Process data\n",
Expand Down Expand Up @@ -221,7 +223,7 @@
" text='stars',\n",
")\n",
"fig.update_traces(\n",
" texttemplate='%{text}',\n",
" texttemplate=text_template,\n",
" textposition='inside',\n",
")\n",
"fig.update_layout(\n",
Expand Down Expand Up @@ -299,7 +301,7 @@
" text='forks',\n",
")\n",
"fig.update_traces(\n",
" texttemplate='%{text}',\n",
" texttemplate=text_template,\n",
" textposition='inside',\n",
")\n",
"fig.update_layout(\n",
Expand Down Expand Up @@ -337,7 +339,7 @@
" text='issue_count',\n",
")\n",
"fig.update_traces(\n",
" texttemplate='%{text}',\n",
" texttemplate=text_template,\n",
" textposition='inside',\n",
")\n",
"fig.update_layout(\n",
Expand Down

0 comments on commit c86057f

Please sign in to comment.