Skip to content

Commit 3166eed

Browse files
committed
lint
1 parent 7439acb commit 3166eed

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

pori_python/graphkb/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(
127127

128128
# URL check
129129
if not self.url:
130-
raise ValueError("URL to a GraphKB API instance is required")
130+
raise ValueError('URL to a GraphKB API instance is required')
131131

132132
@property
133133
def load(self) -> Optional[float]:
@@ -254,8 +254,8 @@ def login(self, username: str, password: str, pori_demo: bool = False) -> None:
254254
read_timeout = 61
255255

256256
# KBDEV-1328. Alt. GraphKB login for GSC's PORI online demo
257-
if pori_demo or "pori-demo" in self.url:
258-
logger.warning("login demo")
257+
if pori_demo or 'pori-demo' in self.url:
258+
logger.warning('login demo')
259259
self.login_demo()
260260

261261
# use requests package directly to avoid recursion loop on login failure

pori_python/ipr/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def ipr_report(
420420

421421
# GKB CONNECTION
422422
graphkb_conn = GraphKBConnection(graphkb_url) if graphkb_url else GraphKBConnection()
423-
logger.info(f"connecting to graphkb: {graphkb_conn.url}")
423+
logger.info(f'connecting to graphkb: {graphkb_conn.url}')
424424

425425
graphkb_conn.login(
426426
graphkb_username if graphkb_username else username,
@@ -499,7 +499,7 @@ def ipr_report(
499499

500500
if include_ipr_variant_text:
501501
if not ipr_conn:
502-
raise ValueError("ipr_url required to include ipr variant text")
502+
raise ValueError('ipr_url required to include ipr variant text')
503503
ipr_comments = get_ipr_analyst_comments(
504504
ipr_conn,
505505
gkb_matches,

pori_python/ipr/util.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -178,30 +178,30 @@ def pandas_falsy(field: Any) -> bool:
178178
# to allow us to remove otherwise unnecessary biopython dependency
179179

180180
protein_letters_1to3 = {
181-
"A": "Ala",
182-
"C": "Cys",
183-
"D": "Asp",
184-
"E": "Glu",
185-
"F": "Phe",
186-
"G": "Gly",
187-
"H": "His",
188-
"I": "Ile",
189-
"K": "Lys",
190-
"L": "Leu",
191-
"M": "Met",
192-
"N": "Asn",
193-
"P": "Pro",
194-
"Q": "Gln",
195-
"R": "Arg",
196-
"S": "Ser",
197-
"T": "Thr",
198-
"V": "Val",
199-
"W": "Trp",
200-
"Y": "Tyr",
181+
'A': 'Ala',
182+
'C': 'Cys',
183+
'D': 'Asp',
184+
'E': 'Glu',
185+
'F': 'Phe',
186+
'G': 'Gly',
187+
'H': 'His',
188+
'I': 'Ile',
189+
'K': 'Lys',
190+
'L': 'Leu',
191+
'M': 'Met',
192+
'N': 'Asn',
193+
'P': 'Pro',
194+
'Q': 'Gln',
195+
'R': 'Arg',
196+
'S': 'Ser',
197+
'T': 'Thr',
198+
'V': 'Val',
199+
'W': 'Trp',
200+
'Y': 'Tyr',
201201
}
202202
protein_letters_1to3_extended = {
203203
**protein_letters_1to3,
204-
**{"B": "Asx", "X": "Xaa", "Z": "Glx", "J": "Xle", "U": "Sec", "O": "Pyl"},
204+
**{'B': 'Asx', 'X': 'Xaa', 'Z': 'Glx', 'J': 'Xle', 'U': 'Sec', 'O': 'Pyl'},
205205
}
206206

207207
protein_letters_3to1 = {value: key for key, value in protein_letters_1to3.items()}

0 commit comments

Comments
 (0)