diff --git a/requirements.txt b/requirements.txt index d159461..6400268 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -integv==1.3.0 pyrogram==2.0.106 tiktok_downloader==0.3.5 uvloop==0.19.0 diff --git a/telegram_downloader_bot/utils.py b/telegram_downloader_bot/utils.py index fac09c1..e7577c6 100644 --- a/telegram_downloader_bot/utils.py +++ b/telegram_downloader_bot/utils.py @@ -6,6 +6,7 @@ from pyrogram import Client from pyrogram.types import Message from tiktok_downloader import snaptik + def sanitize_name(input: str) -> str: """Sanize string by removing non aplhanumeric characters and spaces.""" output = re.sub("[^a-zA-Z0-9- ]", "", input) diff --git a/test-requirements.txt b/test-requirements.txt index 8c42ee1..cd5b104 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,5 @@ -codespell -flake8 -bandit -pytest -stestr -coverage \ No newline at end of file +codespell==2.3.0 +flake8==7.1.1 +bandit==1.7.10 +stestr==4.1.0 +coverage==7.6.2 \ No newline at end of file diff --git a/tox.ini b/tox.ini index bf02581..fa8d31a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py311, flake8, bandit, codespell, unit +envlist = py311, flake8, bandit, codespell, unit, coverage [testenv] basepython = python3.11