Skip to content

Commit 42c2544

Browse files
authored
Merge pull request #15 from SamhammerAG/KIT-4617
KIT-4743 bump packages
2 parents 28879a9 + 0fc548b commit 42c2544

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ai-data-preprocessing-queue"
3-
version = "1.7.0"
3+
version = "1.7.1"
44
description = "A collection of different text processing steps that can be enabled or disabled dynamically."
55
authors = ["KI-Team"]
66
license = "MIT"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
langdetect~=1.0.9
22
nltk>=3.9.0, <4.0
3-
pandas>=2.0.0, <3.0
3+
pandas>=3.0.0, <4.0
44
numpy>=2.0.0, <3.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setuptools.setup(
1313
name="ai-data-preprocessing-queue",
14-
version="1.7.0",
14+
version="1.7.1",
1515
description="Can be used to pre process data before ai processing",
1616
long_description=LONG_DESCRIPTION,
1717
long_description_content_type="text/markdown",

tests/test_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_regex_replacement(self) -> None:
8383
self.assertEqual("test password test", value)
8484

8585
def test_token_replacement_do_not_crash_for_no_data(self) -> None:
86-
pipeline = Pipeline({"token_replacement": None})
86+
pipeline = Pipeline({"token_replacement": None}) # noqa: S105
8787
value = pipeline.consume("test text")
8888
self.assertEqual("test text", value)
8989

tests/test_remove_signature.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import unittest
2+
from unittest.mock import MagicMock, patch
23

34
from parameterized import parameterized
4-
from unittest.mock import MagicMock, patch
5+
56
from ai_data_preprocessing_queue.Pipeline import Pipeline
67
from ai_data_preprocessing_queue.Steps.remove_signature import (
7-
step, remove_greetings_and_following_text, remove_newline)
8+
remove_greetings_and_following_text, remove_newline, step)
89

910

1011
class TestRemoveSignature(unittest.TestCase):
11-
@parameterized.expand([ # type: ignore[misc]
12+
@parameterized.expand([ # type: ignore[untyped-decorator]
1213
(
1314
"multiple_newlines",
1415
"Could you please review the attached document?\n\n\nI need your feedback by Friday.",
@@ -38,7 +39,7 @@ class TestRemoveSignature(unittest.TestCase):
3839
def test_remove_newline(self, name: str, input_text: str, expected: str) -> None:
3940
self.assertEqual(remove_newline(input_text), expected)
4041

41-
@parameterized.expand([ # type: ignore[misc]
42+
@parameterized.expand([ # type: ignore[untyped-decorator]
4243
(
4344
"english_signature_basic",
4445
"Here's the project update. Sincerely, John Smith\nProject Manager",
@@ -88,7 +89,7 @@ def test_remove_newline(self, name: str, input_text: str, expected: str) -> None
8889
def test_remove_greetings_and_following_text(self, name: str, input_text: str, expected: str) -> None:
8990
self.assertEqual(remove_greetings_and_following_text(input_text), expected)
9091

91-
@parameterized.expand([ # type: ignore[misc]
92+
@parameterized.expand([ # type: ignore[untyped-decorator]
9293
(
9394
"remove_signature_basic",
9495
"We're sending the final draft for review. Best regards, Alice Johnson\nProject Lead",
@@ -151,3 +152,4 @@ def test_remove_signature_step_error(self, _: MagicMock) -> None:
151152

152153
if __name__ == "__main__":
153154
unittest.main()
155+
unittest.main()

0 commit comments

Comments
 (0)