Skip to content

Commit ecbd936

Browse files
committed
Fix import sorting across entire project with isort
- Fix import order in root-level Python files - Fix import order in tests/ directory - Fix import order in docs/ directory - Fix import order in examples/ directory - Fix import order in backup files All files now pass isort checks for CI/CD pipeline.
1 parent c32d9c2 commit ecbd936

31 files changed

Lines changed: 493 additions & 62 deletions

colab_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using the new run_pygetpapers function.
77
"""
88

9-
import sys
109
import os
10+
import sys
1111

1212

1313
def test_installation():

demo_lantana_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Shows the complete process from search to download.
55
"""
66

7-
import sys
87
import json
8+
import sys
99
from pathlib import Path
1010

1111
# Add the project root to the path

docs/convert_to_pptx.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
import re
77
from pathlib import Path
8+
89
from pptx import Presentation
9-
from pptx.util import Inches, Pt
10-
from pptx.enum.text import PP_ALIGN
1110
from pptx.dml.color import RGBColor
11+
from pptx.enum.text import PP_ALIGN
12+
from pptx.util import Inches, Pt
1213

1314

1415
def parse_markdown_slides(markdown_file):

docs/convert_value_story.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
import re
77
from pathlib import Path
8+
89
from pptx import Presentation
9-
from pptx.util import Inches, Pt
10-
from pptx.enum.text import PP_ALIGN
1110
from pptx.dml.color import RGBColor
11+
from pptx.enum.text import PP_ALIGN
12+
from pptx.util import Inches, Pt
1213

1314

1415
def parse_markdown_slides(markdown_file):

docs/scielo/scielo_exploration.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
python temp/scielo_exploration.py
1414
"""
1515

16-
import requests
17-
import time
1816
import json
17+
import logging
18+
import time
1919
from pathlib import Path
20-
from urllib.parse import urljoin, urlparse, parse_qs
20+
from urllib.parse import parse_qs, urljoin, urlparse
21+
22+
import requests
2123
from bs4 import BeautifulSoup
22-
import logging
2324

2425
# Set up logging
2526
logging.basicConfig(

docs/scielo/test_article_page.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
the structure of individual article pages.
77
"""
88

9-
import requests
9+
import json
1010
import time
11-
from bs4 import BeautifulSoup
1211
from pathlib import Path
13-
import json
12+
13+
import requests
14+
from bs4 import BeautifulSoup
1415

1516

1617
def test_article_page():

docs/scielo/test_scielo_basic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66
with climate change examples to verify functionality.
77
"""
88

9-
import sys
109
import os
10+
import sys
1111
from pathlib import Path
1212

1313
# Add the project root to the Python path
1414
project_root = Path(__file__).parent.parent
1515
sys.path.insert(0, str(project_root))
1616

17-
from pygetpapers.repositories.scielo.scielo import SciELO
1817
import logging
1918

19+
from pygetpapers.repositories.scielo.scielo import SciELO
20+
2021
# Set up logging
2122
logging.basicConfig(
2223
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"

example_pdf_conversion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88

99
from pathlib import Path
10+
1011
from pdf_to_html_converter import PDFToHTMLConverter
1112

1213

examples/abstract_functionality_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
PURPOSE: Demonstrate abstract extraction, analysis, and table creation
77
"""
88

9-
import sys
109
import os
10+
import sys
1111
from pathlib import Path
1212

1313
# Add the pygetpapers directory to the path

examples/convert_pdf_to_hocr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"""
99

1010
import sys
11-
import pdfplumber
1211
from pathlib import Path
13-
from typing import List, Dict, Any
12+
from typing import Any, Dict, List
13+
14+
import pdfplumber
1415

1516
# Add the pygetpapers directory to the path
1617
sys.path.insert(0, str(Path(__file__).parent.parent))

0 commit comments

Comments
 (0)