Skip to content

Commit fffb9ec

Browse files
committed
LINT: pass w/ ruff check
1 parent 058fb24 commit fffb9ec

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

qiita_pet/handlers/rest/study_association.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@
55
#
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
8-
import warnings
98

10-
from tornado.escape import json_decode
119

1210
from qiita_db.handlers.oauth2 import authenticate_oauth
13-
from qiita_db.study import StudyPerson, Study
14-
from qiita_db.user import User
1511
from .rest_handler import RESTHandler
16-
from qiita_db.metadata_template.constants import SAMPLE_TEMPLATE_COLUMNS
1712

1813

1914
# terms used more than once

qiita_pet/test/rest/test_study_associations.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from tornado.escape import json_decode
1212

13-
from qiita_db.study import Study
1413
from qiita_pet.test.rest.test_base import RESTHandlerTestCase
1514

1615

@@ -152,11 +151,11 @@ def test_get_valid(self):
152151
def _process_dict(d):
153152
return [(d, k) for k in d]
154153

155-
def _process_list(l):
156-
if l is None:
154+
def _process_list(list_):
155+
if list_ is None:
157156
return []
158157

159-
return [dk for d in l
158+
return [dk for d in list_
160159
for dk in _process_dict(d)]
161160

162161
stack = _process_dict(obs)

0 commit comments

Comments
 (0)