Skip to content

Commit

Permalink
#223: Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed May 11, 2021
1 parent d21bd67 commit 4a79940
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion datagateway_api/common/database/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from sqlalchemy import asc, desc

from datagateway_api.common.database import models
from datagateway_api.common.exceptions import FilterError, MultipleIncludeError
from datagateway_api.common.filters import (
DistinctFieldFilter,
Expand Down
2 changes: 1 addition & 1 deletion datagateway_api/common/database/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import ABC, abstractmethod
from datagateway_api.common.helpers import map_distinct_attributes_to_results
import datetime
from functools import wraps
import logging
Expand All @@ -26,6 +25,7 @@
MissingRecordError,
)
from datagateway_api.common.filter_order_handler import FilterOrderHandler
from datagateway_api.common.helpers import map_distinct_attributes_to_results


log = logging.getLogger()
Expand Down
2 changes: 1 addition & 1 deletion datagateway_api/common/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from datagateway_api.common.date_handler import DateHandler
from datetime import datetime
from functools import wraps
import json
Expand All @@ -9,6 +8,7 @@
from sqlalchemy.exc import IntegrityError

from datagateway_api.common.database import models
from datagateway_api.common.date_handler import DateHandler
from datagateway_api.common.exceptions import (
ApiError,
AuthenticationError,
Expand Down
2 changes: 1 addition & 1 deletion datagateway_api/common/icat/query.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from datagateway_api.common.helpers import map_distinct_attributes_to_results
from datetime import datetime
import logging

Expand All @@ -8,6 +7,7 @@

from datagateway_api.common.date_handler import DateHandler
from datagateway_api.common.exceptions import PythonICATError
from datagateway_api.common.helpers import map_distinct_attributes_to_results


log = logging.getLogger()
Expand Down
2 changes: 1 addition & 1 deletion test/icat/test_query.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timezone
from datetime import datetime

from icat.entity import Entity
import pytest
Expand Down
3 changes: 2 additions & 1 deletion test/test_map_distinct_attrs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from datagateway_api.common.helpers import map_distinct_attributes_to_results
from datetime import datetime, timezone

import pytest

from datagateway_api.common.helpers import map_distinct_attributes_to_results


class TestMapDistinctAttrs:
@pytest.mark.parametrize(
Expand Down

0 comments on commit 4a79940

Please sign in to comment.