Skip to content

Commit cb2304b

Browse files
jeremymanningclaude
andcommitted
Fix linter errors in spc.py and pnr.py
- Add blank line before function definitions (E302) - Remove whitespace before colon in dict literals (E203) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f88c9a8 commit cb2304b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

quail/analysis/pnr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import pandas as pd
33
from .recmat import recall_matrix
44

5+
56
def pnr_helper(egg, position, match='exact',
67
distance='euclidean', features=None):
78

@@ -62,7 +63,7 @@ def pnr(lst, position, list_idx):
6263

6364
opts = dict(match=match, distance=distance, features=features)
6465
if match == 'exact':
65-
opts.update({'features' : 'item'})
66+
opts.update({'features': 'item'})
6667
recmat = recall_matrix(egg, **opts)
6768

6869
if match in ['exact', 'best']:

quail/analysis/spc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import pandas as pd
33
from .recmat import recall_matrix
44

5+
56
def spc_helper(egg, match='exact', distance='euclidean',
67
features=None):
78
"""
@@ -60,7 +61,7 @@ def spc(lst, list_idx):
6061

6162
opts = dict(match=match, distance=distance, features=features)
6263
if match == 'exact':
63-
opts.update({'features' : 'item'})
64+
opts.update({'features': 'item'})
6465
recmat = recall_matrix(egg, **opts)
6566

6667
if match in ['exact', 'best']:

0 commit comments

Comments
 (0)