standardize packaging, tooling, docs, CI, and licensing

This commit is contained in:
2026-09-10 18:49:06 +05:30
parent f92d40ed7f
commit 1e7e7c8a6c
38 changed files with 283 additions and 138 deletions

View File

@@ -1,22 +1,20 @@
import json
import pytest
import httpx
from pathlib import Path
from jinja2 import Environment, BaseLoader
import httpx
import pytest
from jinja2 import BaseLoader, Environment
from omniread import (
# core
ContentType,
# html
HTMLScraper,
# pdf
FileSystemPDFClient,
# html
HTMLScraper,
PDFScraper,
)
MOCK_HTML_DIR = Path(__file__).parent / "mocks" / "html"
MOCK_PDF_DIR = Path(__file__).parent / "mocks" / "pdf"
@@ -40,7 +38,7 @@ def mock_transport(request: httpx.Request) -> httpx.Response:
httpx MockTransport handler.
"""
path = request.url.path
if path not in ['/simple', '/table']:
if path not in ["/simple", "/table"]:
return httpx.Response(
status_code=404,
content=b"Not Found",