Skip to content

Commit 757ecf1

Browse files
committed
fix linting
1 parent 2ec2fb5 commit 757ecf1

5 files changed

Lines changed: 4 additions & 8 deletions

File tree

tom_alerts/tests/brokers/test_gaia.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from django.test import TestCase, override_settings
55
from django.forms import ValidationError
66
from unittest import mock, skip
7-
import unittest
87

98
from tom_alerts.alerts import get_service_class
109
from tom_alerts.brokers.gaia import GaiaQueryForm

tom_dataproducts/management/commands/updatereduceddata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class Command(BaseCommand):
1515
help = 'Gets and updates time-series data for a target with data extracted from data services. This will search' \
16-
'existing data for sources that match installed data services and check those data services for new data.'
16+
'existing data for sources that match installed data services and check those data services for new data.'
1717

1818
def add_arguments(self, parser):
1919
parser.add_argument(

tom_dataproducts/templatetags/dataproduct_extras.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
from urllib.parse import urlencode
32

43
from django import template
54
from django import forms

tom_dataservices/dataservices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def to_target(self, target_result=None, **kwargs):
365365
<a href="{reverse('targets:detail', kwargs={'pk': target.id})}">
366366
{target.name}</a> already exists, any new data has been ingested.
367367
You can <a href="{reverse('targets:create') + '?' +
368-
urlencode(target.as_dict())}">create</a> a new target anyway.
368+
urlencode(target.as_dict())}">create</a> a new target anyway.
369369
"""
370370
if request:
371371
messages.warning(request, mark_safe(message))

tom_dataservices/management/commands/rundataquery.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
from django.core.management.base import BaseCommand
66
from django.core.exceptions import ValidationError
77
from django.utils import timezone
8-
from astropy.table import Table
98

109
from tom_dataservices.models import DataServiceQuery
1110
from tom_dataservices.dataservices import get_data_service_class, NotConfiguredError
1211
from tom_dataservices.dataservices import MissingDataException, QueryServiceError
1312

1413

15-
1614
logger = logging.getLogger(__name__)
1715

1816

@@ -22,8 +20,8 @@ class Command(BaseCommand):
2220
def add_arguments(self, parser):
2321
parser.add_argument(
2422
'query_id',
25-
help='ID of saved query to run. (i.e. 1 or 26). Run listqueries management command to see' \
26-
'IDs for saved queries'
23+
help='ID of saved query to run. (i.e. 1 or 26). Run `listqueries` management command to see' \
24+
'IDs for saved queries'
2725
)
2826

2927
def handle(self, *args, **options):

0 commit comments

Comments
 (0)