Skip to content

Commit 26de82c

Browse files
committed
flake8
1 parent 197c438 commit 26de82c

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ jobs:
202202
kill $QIITA_PID
203203
sleep 10
204204
# due to qiita_db tests being more complex and taking longer than
205-
# the other tests we will some extra tests
205+
# the other tests we will only add some extra tests to the run that is
206+
# not testing qiita_db
206207
if [[ "$COVER_PACKAGE" != *"qiita_db"* ]]; then
207208
# 1. testing that we can add some "dummy" studies to the db via
208209
# CLI

qiita_db/environment_manager.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -412,16 +412,16 @@ def patch(patches_dir=PATCHES_DIR, verbose=False, test=False):
412412
print('\tApplying patch %s...' % sql_patch_filename)
413413

414414
sql = patch_file.read()
415-
sql_test = any([m in l
416-
for l in sql.split('\n')
417-
if not l.startswith('--')
418-
for m in not_allowed_matches])
415+
sql_test = any([nam in line
416+
for line in sql.split('\n')
417+
if not line.startswith('--')
418+
for nam in not_allowed_matches])
419419
if sql_test:
420-
msg = (
421-
f"Patch '{basename(sql_patch_fp)}' has an invalid "
422-
f"'match {not_allowed_matches}'; please move them a "
423-
f"test patch.\n*********{sql}\n*********")
424-
raise ValueError(msg)
420+
msg = (
421+
f"Patch '{basename(sql_patch_fp)}' has an invalid "
422+
f"'match {not_allowed_matches}'; please move them a "
423+
f"test patch.\n*********{sql}\n*********")
424+
raise ValueError(msg)
425425

426426
qdb.sql_connection.TRN.add(sql)
427427
qdb.sql_connection.TRN.add(

0 commit comments

Comments
 (0)