Skip to content

Commit 77aaf8a

Browse files
authored
Merge pull request #13 from SamhammerAG/KIT-4026
KIT-4026 update
2 parents dafdb7d + f59ee07 commit 77aaf8a

9 files changed

Lines changed: 16 additions & 33 deletions

File tree

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ exclude =
77
build,
88
dist
99
per-file-ignores =
10-
__init__.py: F401
10+
__init__.py: D100, D101, D102, D103, D104, D106, D107, F401
11+
/*: D100, D101, D102, D103, D104, D106, D107

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
.idea/sqlDataSources.xml
1414
.idea/dynamic.xml
1515
.idea/dictionaries
16+
.idea/ai_data_preprocessing_queue.iml
1617

1718
## File-based project format
1819
*.ipr

.idea/ai_data_preprocessing_queue.iml

Lines changed: 0 additions & 16 deletions
This file was deleted.

ai_data_preprocessing_queue/StepProcessor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def __init__(self, name: str, step_data: str | None) -> None:
1414
module_name = f".{self.name}"
1515
self.module = importlib.import_module(module_name, package_name)
1616

17-
assert self.module.step is not None
17+
if self.module.step is None: # pragma: no cover
18+
raise AssertionError("self.module.step must not be None")
1819

1920
def run(self, item: Any, item_state: dict[str, Any], global_state: dict[str, Any] | None = None) -> Any:
2021
return self.module.step(item, item_state, global_state, self.step_data or "")

ai_data_preprocessing_queue/Steps/language_detect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
2-
Detects one of the following languages and writes the language to local state
2+
Detects one of the following languages and writes the language to local state.
3+
34
af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu, he,
45
hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne, nl, no, pa, pl,
56
pt, ro, ru, sk, sl, so, sq, sv, sw, ta, te, th, tl, tr, uk, ur, vi,

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ai-data-preprocessing-queue"
3-
version = "0.2.0"
3+
version = "1.6.0"
44
description = "A collection of different text processing steps that can be enabled or disabled dynamically."
55
authors = ["KI-Team"]
66
license = "MIT"
@@ -14,15 +14,13 @@ pandas = "*"
1414
numpy = "*"
1515

1616
[tool.poetry.group.dev.dependencies]
17+
coverage-lcov = "*"
1718
flake8-bandit = "*"
1819
flake8-pydocstyle = "*"
1920
mypy = "*"
2021
build = "*"
2122
pytest = "*"
22-
pytest-asyncio = "*"
2323
pytest-cov = "*"
24-
coverage-lcov = "*"
25-
mock = "*"
2624
types-mock = "*"
2725

2826
[build-system]

requirements-dev.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
-r requirements.txt
2+
coverage-lcov
3+
build
24
flake8-bandit
35
flake8-pydocstyle
46
mypy
5-
build
6-
77
pytest
8-
pytest-asyncio
98
pytest-cov
10-
coverage-lcov
11-
mock
12-
types-mock
9+

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
langdetect~=1.0.9
2-
nltk>=3.7
3-
pandas>=1.5.1
4-
numpy>=1.23.4
2+
nltk>=3.9.0, <4.0
3+
pandas>=2.0.0, <3.0
4+
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.5.0",
14+
version="1.6.0",
1515
description="Can be used to pre process data before ai processing",
1616
long_description=LONG_DESCRIPTION,
1717
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)