Skip to content

Commit 6a1b905

Browse files
committed
tidied to be flake8 and black compliant
1 parent fa7ca69 commit 6a1b905

439 files changed

Lines changed: 72 additions & 82515 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ pygetpapers.egg-info/
44
.vscode/
55
.pytest_cache/
66
venv/
7-
.idea/
7+
venv_*/
8+
.idea/
9+
__pycache__/
10+
*.pyc
11+
*.pyo
12+
*.pyd
13+
.flake8
14+
.Python

datatables_integration.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,17 +657,15 @@ def search_fulltext(
657657
pdf_files = list(paper_path.glob("*.pdf"))
658658
for pdf_file in pdf_files:
659659
try:
660-
# Basic PDF text extraction (could be enhanced with PyPDF2 or
660+
# Basic PDF text extraction (could be enhanced with PyPDF2 or
661661
# similar)
662662
content = self._extract_pdf_text(pdf_file)
663663
if content:
664664
matches = self._search_in_content(
665665
content, search_terms, case_sensitive, "PDF"
666666
)
667667
for match in matches:
668-
match["file"] = str(
669-
pdf_file.relative_to(paper_path)
670-
)
668+
match["file"] = str(pdf_file.relative_to(paper_path))
671669
match["paper_id"] = paper["directory"]
672670
paper_matches.append(match)
673671
except Exception as e:

datatables_module/datatables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def add_body_scripts(cls, body, table_id):
6767
table_id: ID of the table to initialize
6868
"""
6969
if JQUERY_JS is not None:
70-
script = cls._add_element(
70+
cls._add_element(
7171
body,
7272
"script",
7373
{"charset": "UTF-8", "type": "text/javascript", "src": JQUERY_JS},

lantana/PMC11250815/eupmc_result.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

lantana/PMC11250815/fulltext.csv

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)