diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 578f847..6aa1276 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,11 +40,6 @@ jobs: - name: Update pip run: python3 -m pip install -U pip - - name: Avoid compiling OpenCV and NumPy on Python 3.6 - run: | - if python3 --version | grep -q "Python 3.6"; then - pip install --prefer-binary -U opencv-python-headless numpy - fi - name: Install requirements*.txt run: | for requirements_txt in requirements*.txt; do diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f3562a..b76b8b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.10 + rev: v0.1.11 hooks: - args: - --fix diff --git a/pyproject.toml b/pyproject.toml index da33b15..ce32d56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ authors = [ ] description = "The OCR evaluation tool" readme = "README.md" -requires-python = ">=3.6" +requires-python = ">=3.8" keywords = ["qurator", "ocr", "evaluation", "ocr-d"] dynamic = ["version", "dependencies", "optional-dependencies"] diff --git a/src/dinglehopper/edit_distance.py b/src/dinglehopper/edit_distance.py index 9f7d309..af1e047 100644 --- a/src/dinglehopper/edit_distance.py +++ b/src/dinglehopper/edit_distance.py @@ -1,4 +1,5 @@ import unicodedata +from typing import List from multimethod import multimethod from rapidfuzz.distance import Levenshtein diff --git a/src/dinglehopper/extracted_text.py b/src/dinglehopper/extracted_text.py index 49882b7..7ef9d1d 100644 --- a/src/dinglehopper/extracted_text.py +++ b/src/dinglehopper/extracted_text.py @@ -4,7 +4,7 @@ import re import unicodedata from contextlib import suppress from itertools import repeat -from typing import Optional, List +from typing import List, Optional import attr import numpy as np