Skip to content

Commit 374ef49

Browse files
fix lint + license check
1 parent a9dfc47 commit 374ef49

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ repos:
4545
- types-requests
4646
- types-setuptools
4747
- importlib-metadata
48-
- types-Pillow
48+
- types-Pillow

examples/multi_receipts_tutorial.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
from mindee import PredictResponse, Client, product
2-
from mindee.image_extraction.multi_receipts_extractor.mult_receipts_extractor import extract_receipts
1+
from mindee import Client, PredictResponse, product
2+
from mindee.image_extraction.multi_receipts_extractor.mult_receipts_extractor import (
3+
extract_receipts,
4+
)
35

46
# Init a new client
57
mindee_client = Client()
68

79
# Load a file from disk
810
input_doc = mindee_client.source_from_path("path/to/your/file.ext")
911
result_split: PredictResponse = mindee_client.parse(
10-
product.MultiReceiptsDetectorV1,
11-
input_doc,
12-
close_file=False
12+
product.MultiReceiptsDetectorV1, input_doc, close_file=False
1313
)
1414

1515
extracted_receipts = extract_receipts(input_doc, result_split.document.inference)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ safe_licenses = [
3333
"Mozilla Public License 2.0 (MPL 2.0)",
3434
"BSD License",
3535
"(Apache-2.0 OR BSD-3-Clause) AND LicenseRef-PdfiumThirdParty",
36-
"Historical Permission Notice and Disclaimer (HPND) (HPND)"
36+
"Historical Permission Notice and Disclaimer (HPND)"
3737
]
3838

3939
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)