Skip to content

Commit fba0b45

Browse files
committed
fix(tests): Lint flake8
1 parent e213bb3 commit fba0b45

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

eyecite/find.py

-3
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,3 @@ def _extract_id_citation(
337337
"parenthetical": parenthetical,
338338
},
339339
)
340-
341-
342-
# [he has not agreed so to submit.’” Howsam v. Dean Witter Reynolds, Inc. , 537 U.S. 79, (2002) (combined mandamus and interlocutory appeal) (citing Howsam at 84, 123 S. Ct. at 592)]

eyecite/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def add_post_citation(citation: CaseCitation, words: Tokens) -> None:
101101
citation.metadata.pin_cite = clean_pin_cite(m["pin_cite"]) or None
102102
citation.metadata.extra = (m["extra"] or "").strip() or None
103103
citation.metadata.parenthetical = process_parenthetical(m["parenthetical"])
104-
if m["parenthetical"] != None:
104+
if m["parenthetical"] is not None:
105105
if len(m["parenthetical"]) > len(citation.metadata.parenthetical):
106106
citation.full_span_end = citation.full_span_end - (
107107
len(m["parenthetical"]) - len(citation.metadata.parenthetical)

tests/test_FindTest.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import os
2-
from copy import copy
32
from datetime import datetime
43
from unittest import TestCase
54

65
from eyecite import clean_text, get_citations
7-
from eyecite.find import extract_reference_citations
86
from eyecite.helpers import filter_citations
97

108
# by default tests use a cache for speed
119
# call tests with `EYECITE_CACHE_DIR= python ...` to disable cache
12-
from eyecite.models import ResourceCitation, FullCitation, FullCaseCitation
10+
from eyecite.models import ResourceCitation, FullCaseCitation
1311
from eyecite.test_factories import (
1412
case_citation,
1513
id_citation,
@@ -21,7 +19,6 @@
2119
)
2220
from eyecite.tokenizers import (
2321
EDITIONS_LOOKUP,
24-
EXTRACTORS,
2522
AhocorasickTokenizer,
2623
HyperscanTokenizer,
2724
Tokenizer,

0 commit comments

Comments
 (0)