Skip to content

Commit

Permalink
ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmacavaney committed Dec 3, 2024
1 parent 8a9ed6c commit 50ea1bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pyterrier_adaptive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
from .gar import GAR
from .corpus_graph import CorpusGraph, NpTopKCorpusGraph
from pyterrier_adaptive._laff import Laff

__all__ = ['GAR', 'CorpusGraph', 'NpTopKCorpusGraph', 'Laff']
3 changes: 0 additions & 3 deletions pyterrier_adaptive/corpus_graph.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import pickle
import tempfile
from lz4.frame import LZ4FrameFile
import shutil
import json
import numpy as np
import pandas as pd
from pathlib import Path
import torch
import more_itertools
from typing import Union, Tuple, List
import ir_datasets
from npids import Lookup
import pyterrier as pt
import pyterrier_alpha as pta

try:
Expand Down
3 changes: 2 additions & 1 deletion pyterrier_adaptive/gar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pyterrier as pt
import pandas as pd
import ir_datasets
import pyterrier_adaptive
logger = ir_datasets.log.easy()


Expand All @@ -20,7 +21,7 @@ class GAR(pt.Transformer):
"""
def __init__(self,
scorer: pt.Transformer,
corpus_graph: 'CorpusGraph',
corpus_graph: 'pyterrier_adaptive.CorpusGraph',
num_results: int = 1000,
batch_size: Optional[int] = None,
backfill: bool = True,
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ruff
pytest
pytest-subtests
pytest-cov
Expand Down

0 comments on commit 50ea1bb

Please sign in to comment.