@ -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
for requirements_txt in requirements*.txt; do
@ -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
@ -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"]
@ -1,4 +1,5 @@
import unicodedata
from typing import List
from multimethod import multimethod
from rapidfuzz.distance import Levenshtein
@ -4,7 +4,7 @@ import re
from contextlib import suppress
from itertools import repeat
from typing import Optional, List
from typing import List, Optional
import attr
import numpy as np