Skip to content

Commit a1b51a3

Browse files
✨ add support for python 3.14 (#366)
1 parent a7d61a3 commit a1b51a3

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

.github/workflows/_test-code-samples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
matrix:
1414
python-version:
1515
- "3.8"
16-
- "3.12"
16+
- "3.14"
1717
runs-on: "ubuntu-22.04"
1818
steps:
1919
- uses: actions/checkout@v4

.github/workflows/_test-integrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- "windows-2022"
2020
python-version:
2121
- "3.8"
22-
- "3.12"
22+
- "3.14"
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@v4

.github/workflows/_test-regressions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- "windows-2022"
2020
python-version:
2121
- "3.8"
22-
- "3.12"
22+
- "3.14"
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@v4

.github/workflows/_test-units.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- "3.11"
2323
- "3.12"
2424
- "3.13"
25+
- "3.14"
2526
runs-on: ${{ matrix.os }}
2627
steps:
2728
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
]
2323

2424
- repo: https://github.com/gitleaks/gitleaks
25-
rev: v8.18.4
25+
rev: v8.28.0
2626
hooks:
2727
- id: gitleaks
2828

mindee/pdf/pdf_compressor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import io
22
import logging
3-
from ctypes import c_char_p, c_ushort
3+
from ctypes import POINTER, c_char_p, c_ushort
44
from threading import RLock
55
from typing import BinaryIO, List, Optional, Tuple, Union
66

77
import pypdfium2 as pdfium
88
import pypdfium2.raw as pdfium_c
9-
from _ctypes import POINTER
109
from PIL import Image
1110

1211
from mindee.image_operations.image_compressor import compress_image

tests/input/test_url_input_source_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def output_file_path():
1919

2020
@pytest.fixture
2121
def reference_file_path():
22-
return "https://github.com/mindee/client-lib-test-data/blob/main/products/invoice_splitter/invoice_5p.pdf?raw=true"
22+
return "https://github.com/mindee/client-lib-test-data/blob/main/v1/products/invoice_splitter/invoice_5p.pdf?raw=true"
2323

2424

2525
@pytest.mark.integration

tests/test_client_v2_integration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import os
42
from pathlib import Path
53

0 commit comments

Comments
 (0)