Skip to content

Commit

Permalink
Fix Ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Aug 23, 2024
1 parent d38884a commit dfca418
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion gocam_viz/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from django.contrib import admin

# Register your models here.
1 change: 0 additions & 1 deletion gocam_viz/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from django.test import TestCase

# Create your tests here.
2 changes: 1 addition & 1 deletion gocam_viz/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def index(request):
else:
graph_height = 650

gocam_viz_html = f"<wc-gocam-viz style='--button-background: #2598c5; --button-background-hover: #2598c5; -- --button-color: #fff; --panel-header-border-width: 1px; --panel-header-border-color: #ddd; --border-color: #d1c4e9; --panel-header-padding: 0.2em; --panel-header-background: #f2f2f2; --graph-height: {graph_height}px;' id='gocam-1' api-url='https://api.geneontology.xyz/gocam/%ID/raw' gocam-id='{gocam_id}'></wc-gocam-viz>";
gocam_viz_html = f"<wc-gocam-viz style='--button-background: #2598c5; --button-background-hover: #2598c5; -- --button-color: #fff; --panel-header-border-width: 1px; --panel-header-border-color: #ddd; --border-color: #d1c4e9; --panel-header-padding: 0.2em; --panel-header-background: #f2f2f2; --graph-height: {graph_height}px;' id='gocam-1' api-url='https://api.geneontology.xyz/gocam/%ID/raw' gocam-id='{gocam_id}'></wc-gocam-viz>"

context = {
# 'full_or_widget': full_or_widget,
Expand Down
1 change: 0 additions & 1 deletion rna_2d_structure/admin.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from django.contrib import admin
1 change: 0 additions & 1 deletion rna_2d_structure/models.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from django.db import models
1 change: 0 additions & 1 deletion rna_2d_structure/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from django.test import TestCase

# Create your tests here.
1 change: 0 additions & 1 deletion stats/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from django.contrib import admin

# Register your models here.
1 change: 0 additions & 1 deletion stats/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from django.db import models

# Create your models here.
1 change: 0 additions & 1 deletion stats/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from django.test import TestCase

# Create your tests here.
7 changes: 3 additions & 4 deletions stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
import json
import re

import io

Expand Down Expand Up @@ -108,7 +107,7 @@ def make_plot(raw_stat_type, column_name=None):
response = HttpResponse(imgdata.getvalue(), content_type="image/svg+xml")

plt.cla()
fig.clf();
fig.clf()
plt.close('all')

return response
Expand Down Expand Up @@ -143,7 +142,7 @@ def make_year_range_plot(raw_stat_type):
response = HttpResponse(imgdata.getvalue(), content_type="image/svg+xml")

plt.cla()
fig.clf();
fig.clf()
plt.close('all')

return response
Expand Down Expand Up @@ -215,7 +214,7 @@ def community_response_rates(_):
response = HttpResponse(imgdata.getvalue(), content_type="image/svg+xml")

plt.cla()
fig.clf();
fig.clf()
plt.close('all')

return response
Expand Down

0 comments on commit dfca418

Please sign in to comment.