From 35a85c8cab1027018525baaf36f23ed8f435e62b Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 17 Jul 2024 21:02:27 +0300 Subject: [PATCH 01/47] Update dependency pytest-asyncio to v0.23.8 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 566d360..549bac9 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,7 +3,7 @@ build==1.2.1 isort==5.13.2 mypy==1.10.1 pylint==3.2.5 -pytest-asyncio==0.23.7 +pytest-asyncio==0.23.8 pytest-cov==5.0.0 pytest==8.2.2 tox==4.16.0 From 80fd18d10184f62a8a6779f8c30b30d940885aaa Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 19 Jul 2024 21:29:57 +0300 Subject: [PATCH 02/47] Update dependency mypy to v1.11.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 549bac9..abdbc1f 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.4.2 build==1.2.1 isort==5.13.2 -mypy==1.10.1 +mypy==1.11.0 pylint==3.2.5 pytest-asyncio==0.23.8 pytest-cov==5.0.0 From 1e3e6cc7d0528587174828c2794bd59a85d06b0d Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 20 Jul 2024 18:35:48 +0300 Subject: [PATCH 03/47] Update dependency pytest to v8.3.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index abdbc1f..4ed179b 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.11.0 pylint==3.2.5 pytest-asyncio==0.23.8 pytest-cov==5.0.0 -pytest==8.2.2 +pytest==8.3.0 tox==4.16.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 891d8e416b355012a4822822112b5af2df92e6ab Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 20 Jul 2024 19:39:38 +0300 Subject: [PATCH 04/47] Update dependency pytest to v8.3.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 4ed179b..f95970e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.11.0 pylint==3.2.5 pytest-asyncio==0.23.8 pytest-cov==5.0.0 -pytest==8.3.0 +pytest==8.3.1 tox==4.16.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From a5edaa035ec26b55c5aa1ebbd91a4698a0cecdfc Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 21 Jul 2024 23:08:20 +0300 Subject: [PATCH 05/47] Update dependency pylint to v3.2.6 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index f95970e..8252b2f 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.4.2 build==1.2.1 isort==5.13.2 mypy==1.11.0 -pylint==3.2.5 +pylint==3.2.6 pytest-asyncio==0.23.8 pytest-cov==5.0.0 pytest==8.3.1 From b00e1888591d72170cea70b6ef0ce7b07e533d3d Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 25 Jul 2024 13:43:06 +0300 Subject: [PATCH 06/47] Update dependency pytest to v8.3.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 8252b2f..a85de29 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.11.0 pylint==3.2.6 pytest-asyncio==0.23.8 pytest-cov==5.0.0 -pytest==8.3.1 +pytest==8.3.2 tox==4.16.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 3d9489eb0e2176b5bdf9915c86b771ecede5f864 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 26 Jul 2024 19:58:26 +0200 Subject: [PATCH 07/47] Fixed incorrect test declaration --- tests/test_config_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_config_sync.py b/tests/test_config_sync.py index 522dcda..a13a494 100644 --- a/tests/test_config_sync.py +++ b/tests/test_config_sync.py @@ -59,7 +59,7 @@ def test_config_delete(key: str, path: List[str], location_config: Path): ("bot_lol", ["bot"]), ], ) -async def test_config_delete_missing(key: str, path: List[str], location_config: Path): +def test_config_delete_missing(key: str, path: List[str], location_config: Path): assert ( sync.config_delete(key, *path, missing_ok=True, config_file=location_config) is None From 300df5b828acccad916f50ec3339fe76ba619456 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 31 Jul 2024 01:54:06 +0300 Subject: [PATCH 08/47] Update dependency mypy to v1.11.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index a85de29..e503bab 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.4.2 build==1.2.1 isort==5.13.2 -mypy==1.11.0 +mypy==1.11.1 pylint==3.2.6 pytest-asyncio==0.23.8 pytest-cov==5.0.0 From fcb08adc59ee0111f7e9c3339a63147bc934b21c Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 2 Aug 2024 21:37:29 +0300 Subject: [PATCH 09/47] Update dependency black to v24.8.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index e503bab..3d5a19c 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.4.2 +black==24.8.0 build==1.2.1 isort==5.13.2 mypy==1.11.1 From 8b18449e231277a2e497730704e7ee48cf2d994b Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 5 Aug 2024 23:46:38 +0300 Subject: [PATCH 10/47] Update dependency tox to v4.17.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 3d5a19c..2c07e5d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.2.6 pytest-asyncio==0.23.8 pytest-cov==5.0.0 pytest==8.3.2 -tox==4.16.0 +tox==4.17.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 7a67c48ad65eff7afa384853a5a0839a4ac8fa89 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 7 Aug 2024 21:22:32 +0300 Subject: [PATCH 11/47] Update dependency tox to v4.17.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 2c07e5d..9095ae0 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.2.6 pytest-asyncio==0.23.8 pytest-cov==5.0.0 pytest==8.3.2 -tox==4.17.0 +tox==4.17.1 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From b366bb5c6ffc38702ad0963b0e01d71c3a43b1f4 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 13 Aug 2024 20:32:44 +0300 Subject: [PATCH 12/47] Update dependency tox to v4.18.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 9095ae0..48b6d2c 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.2.6 pytest-asyncio==0.23.8 pytest-cov==5.0.0 pytest==8.3.2 -tox==4.17.1 +tox==4.18.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 36698b105c0942514702761e5cee31050f3ed8ad Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 22 Aug 2024 11:53:29 +0300 Subject: [PATCH 13/47] Update dependency pytest-asyncio to v0.24.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 48b6d2c..ec4b100 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,7 +3,7 @@ build==1.2.1 isort==5.13.2 mypy==1.11.1 pylint==3.2.6 -pytest-asyncio==0.23.8 +pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.2 tox==4.18.0 From ca989b1e82b4e62ac3399421334e5ca7061c0486 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 25 Aug 2024 02:15:07 +0300 Subject: [PATCH 14/47] Update dependency mypy to v1.11.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index ec4b100..d4f4d9e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.8.0 build==1.2.1 isort==5.13.2 -mypy==1.11.1 +mypy==1.11.2 pylint==3.2.6 pytest-asyncio==0.24.0 pytest-cov==5.0.0 From dcf5a24d2af8d26bef20f859dc39a5cf4c7cf53e Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 31 Aug 2024 18:05:42 +0300 Subject: [PATCH 15/47] Update dependency pylint to v3.2.7 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index d4f4d9e..f0d9da9 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.8.0 build==1.2.1 isort==5.13.2 mypy==1.11.2 -pylint==3.2.6 +pylint==3.2.7 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.2 From b00d4c028109071cecddb7d010e835c6c7b62452 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 7 Sep 2024 00:00:20 +0300 Subject: [PATCH 16/47] Update dependency build to v1.2.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index f0d9da9..d8bb107 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ black==24.8.0 -build==1.2.1 +build==1.2.2 isort==5.13.2 mypy==1.11.2 pylint==3.2.7 From 8587030c2357564dd0928991b0ac06c2204f264a Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 7 Sep 2024 19:48:32 +0300 Subject: [PATCH 17/47] Update dependency tox to v4.18.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index d8bb107..25ffdc1 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.2.7 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.2 -tox==4.18.0 +tox==4.18.1 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 8c15d20dc63361762eb5198b3541cac0978ffb34 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 10 Sep 2024 14:28:30 +0300 Subject: [PATCH 18/47] Update dependency pytest to v8.3.3 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 25ffdc1..fef810f 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.11.2 pylint==3.2.7 pytest-asyncio==0.24.0 pytest-cov==5.0.0 -pytest==8.3.2 +pytest==8.3.3 tox==4.18.1 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From f8ebaff82d642a1f1a19c46305cd8c13e9cea407 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 17 Sep 2024 22:31:53 +0300 Subject: [PATCH 19/47] Update dependency tox to v4.19.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index fef810f..ab5ce9b 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.2.7 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.18.1 +tox==4.19.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 78a5fb886fabe9e1512a3c6764cebaf980ebd3fe Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 19 Sep 2024 06:56:21 +0300 Subject: [PATCH 20/47] Update dependency tox to v4.20.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index ab5ce9b..596b2cf 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.2.7 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.19.0 +tox==4.20.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 60cc3f22d8c57e8d627946b5bb7dff344d9f4ca1 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 20 Sep 2024 16:22:35 +0300 Subject: [PATCH 21/47] Update dependency pylint to v3.3.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 596b2cf..4479231 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.8.0 build==1.2.2 isort==5.13.2 mypy==1.11.2 -pylint==3.2.7 +pylint==3.3.0 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 From a341ffd41d3a133908b4febb35884dca8ce25dde Mon Sep 17 00:00:00 2001 From: profitroll Date: Sat, 21 Sep 2024 00:11:13 +0200 Subject: [PATCH 22/47] Dropped Python 3.8 support and added 3.12 support instead --- .gitea/workflows/tests.yml | 2 +- pyproject.toml | 8 ++++---- src/libbot/__init__.py | 2 +- tox.ini | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 2bdabf4..232e3eb 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: container: catthehacker/ubuntu:act-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index c9f761f..2029037 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,17 +8,17 @@ dynamic = ["version", "dependencies", "optional-dependencies"] authors = [{ name = "Profitroll" }] description = "Universal bot library with functions needed for basic Discord/Telegram bot development." readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" license = { text = "GPLv3" } classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities", ] @@ -42,7 +42,7 @@ Tracker = "https://git.end-play.xyz/profitroll/LibBotUniversal/issues" where = ["src"] [tool.black] -target-version = ['py38', 'py39', 'py310', 'py311'] +target-version = ['py39', 'py310', 'py311' ,'py312'] [tool.isort] profile = "black" @@ -61,7 +61,7 @@ show_error_codes = true [tool.pylint.main] extension-pkg-whitelist = ["ujson"] -py-version = 3.8 +py-version = 3.9 [tool.coverage.run] source = ["libbot"] diff --git a/src/libbot/__init__.py b/src/libbot/__init__.py index a2c0bdf..2a3d63c 100644 --- a/src/libbot/__init__.py +++ b/src/libbot/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.2.3" +__version__ = "3.3.0" __license__ = "GPL3" __author__ = "Profitroll" diff --git a/tox.ini b/tox.ini index 7aafed7..2d1f1c1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,14 +1,14 @@ [tox] -minversion = 3.8.0 -envlist = py38, py39, py310, py311 +minversion = 3.9.0 +envlist = py39, py310, py311, py312 isolated_build = true [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv] setenv = From 63cecf7ab89322d745e080c85f8b841848d22391 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 24 Sep 2024 15:11:18 +0300 Subject: [PATCH 23/47] Update dependency pylint to v3.3.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 4479231..0a70e35 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.8.0 build==1.2.2 isort==5.13.2 mypy==1.11.2 -pylint==3.3.0 +pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 From 67befe6bdbb49aeaa35a6a702efe10596038f5d0 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 1 Oct 2024 07:39:37 +0300 Subject: [PATCH 24/47] Update dependency tox to v4.21.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 0a70e35..44a57bf 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.20.0 +tox==4.21.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From b8f5d59a4f260f105fd65809863521bd6e037545 Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 3 Oct 2024 00:23:12 +0300 Subject: [PATCH 25/47] Update dependency tox to v4.21.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 44a57bf..62d4eef 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.21.0 +tox==4.21.1 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 41c8a6989bf56263e7e765ba31646d962e39f2b0 Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 3 Oct 2024 19:11:48 +0300 Subject: [PATCH 26/47] Update dependency tox to v4.21.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 62d4eef..4f44000 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.21.1 +tox==4.21.2 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From c7d0d2793b8b4ee95bc3acccef2306f1d0d8edf3 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 6 Oct 2024 21:19:35 +0300 Subject: [PATCH 27/47] Update dependency build to v1.2.2.post1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 4f44000..b4ddee9 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ black==24.8.0 -build==1.2.2 +build==1.2.2.post1 isort==5.13.2 mypy==1.11.2 pylint==3.3.1 From 03ad8e2144aa8856a6bd6e74cc7108362ff9bd60 Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 7 Oct 2024 22:45:07 +0300 Subject: [PATCH 28/47] Update dependency black to v24.10.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index b4ddee9..e99c08c 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.8.0 +black==24.10.0 build==1.2.2.post1 isort==5.13.2 mypy==1.11.2 From c71b07695f770d4085087f2c5623ee9d3cbad4e8 Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 14 Oct 2024 15:21:36 +0300 Subject: [PATCH 29/47] Update dependency mypy to v1.12.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index e99c08c..d04a62c 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.10.0 build==1.2.2.post1 isort==5.13.2 -mypy==1.11.2 +mypy==1.12.0 pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 From e130633017613c543030c15965741633d6a64501 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 15 Oct 2024 22:29:37 +0300 Subject: [PATCH 30/47] Update dependency tox to v4.22.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index d04a62c..ef74b90 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.21.2 +tox==4.22.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From eeaa71606b8377325f983fbd7fe44275b84d88bc Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 17 Oct 2024 07:39:43 +0300 Subject: [PATCH 31/47] Update dependency tox to v4.23.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index ef74b90..eba5106 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.22.0 +tox==4.23.0 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 1d32c5e1c3a3a91e17fc0aa371c6ba9a14204237 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 20 Oct 2024 04:00:40 +0300 Subject: [PATCH 32/47] Update dependency mypy to v1.12.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index eba5106..b2fb9c2 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.10.0 build==1.2.2.post1 isort==5.13.2 -mypy==1.12.0 +mypy==1.12.1 pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 From 54feb5ff5bd3712153f4262f1eae66618255c974 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 22 Oct 2024 08:50:37 +0300 Subject: [PATCH 33/47] Update dependency tox to v4.23.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index b2fb9c2..cb6514a 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.23.0 +tox==4.23.1 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From c175b4634c3ae18b3163d70e2a528587c7ee9a9e Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 22 Oct 2024 18:11:45 +0300 Subject: [PATCH 34/47] Update dependency tox to v4.23.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index cb6514a..9095170 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 pytest==8.3.3 -tox==4.23.1 +tox==4.23.2 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From c670521bb2b544125f379761841c25c0d4879353 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 23 Oct 2024 01:28:30 +0300 Subject: [PATCH 35/47] Update dependency mypy to v1.13.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 9095170..7d41d94 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.10.0 build==1.2.2.post1 isort==5.13.2 -mypy==1.12.1 +mypy==1.13.0 pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==5.0.0 From 377ba928ba0e5e838c029f943d18c02793e5a1db Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 29 Oct 2024 17:37:16 +0200 Subject: [PATCH 36/47] Added sonarcloud job --- .gitea/workflows/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 232e3eb..3e4c5c7 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -10,6 +10,7 @@ on: jobs: test: + name: Build and Test runs-on: ubuntu-latest container: catthehacker/ubuntu:act-latest strategy: @@ -36,3 +37,15 @@ jobs: with: name: Artifacts path: dist/* + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file From d41eb742e5997c8f5fa7d67ad141e54014b88637 Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 29 Oct 2024 17:38:41 +0200 Subject: [PATCH 37/47] Add sonar-project.properties --- sonar-project.properties | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..25798e9 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.projectKey=profitroll_libbot +sonar.organization=profitroll \ No newline at end of file From acb77049d193784d9597eb9030aa919f3a02a89b Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 29 Oct 2024 17:55:02 +0200 Subject: [PATCH 38/47] Changed the sonarcloud action link --- .gitea/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 3e4c5c7..cf07f05 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -45,7 +45,7 @@ jobs: with: fetch-depth: 0 - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + uses: https://github.com/SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file From c9e4b3b916b47db7567f247395ceed78fd1a42b4 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 29 Oct 2024 22:25:05 +0200 Subject: [PATCH 39/47] Update dependency pytest-cov to v6 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 7d41d94..a46a131 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -4,7 +4,7 @@ isort==5.13.2 mypy==1.13.0 pylint==3.3.1 pytest-asyncio==0.24.0 -pytest-cov==5.0.0 +pytest-cov==6.0.0 pytest==8.3.3 tox==4.23.2 types-aiofiles==24.1.0.20240626 From 54d98df7b7cbf5270f01d38c3e8a5dc835fb5cc1 Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 29 Oct 2024 23:39:57 +0200 Subject: [PATCH 40/47] Fixed Gitea Act container --- .gitea/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 3e4c5c7..ba4da84 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -40,6 +40,7 @@ jobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 with: From 2757bd6b728f18237d1982cf7733e890f3d03255 Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 29 Oct 2024 23:42:07 +0200 Subject: [PATCH 41/47] Removed explicit action host --- .gitea/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 88aad23..ba4da84 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -46,7 +46,7 @@ jobs: with: fetch-depth: 0 - name: SonarCloud Scan - uses: https://github.com/SonarSource/sonarcloud-github-action@master + uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file From 02cfc42f60212e65ebdc89f7b7fcde6fd946a887 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 29 Oct 2024 22:55:01 +0100 Subject: [PATCH 42/47] Separated SonarCloud from normal tests --- .gitea/workflows/analysis.yml | 24 ++++++++++++++++++++++++ .gitea/workflows/tests.yml | 15 +-------------- 2 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 .gitea/workflows/analysis.yml diff --git a/.gitea/workflows/analysis.yml b/.gitea/workflows/analysis.yml new file mode 100644 index 0000000..50053fc --- /dev/null +++ b/.gitea/workflows/analysis.yml @@ -0,0 +1,24 @@ +name: Analysis + +on: + push: + branches: + - main + - dev + pull_request: + types: [opened, synchronize, reopened] + +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index ba4da84..a1ba4c6 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -36,17 +36,4 @@ jobs: - uses: actions/upload-artifact@v3 with: name: Artifacts - path: dist/* - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + path: dist/* \ No newline at end of file From d20d07bb6a241f5d6bd2bb7e0899b4509abbbba0 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 29 Oct 2024 23:19:52 +0100 Subject: [PATCH 43/47] Fixed a few things mentioned in SonarCloud --- src/libbot/__main__.py | 9 +++++---- src/libbot/pyrogram/classes/client.py | 3 ++- src/libbot/sync/__main__.py | 9 +++++---- tests/test_utils.py | 2 ++ 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/libbot/__main__.py b/src/libbot/__main__.py index eb696e1..ffb36f3 100644 --- a/src/libbot/__main__.py +++ b/src/libbot/__main__.py @@ -11,6 +11,8 @@ except ImportError: from ._utils import supports_argument from .sync._nested import nested_delete, nested_set +DEFAULT_CONFIG_LOCATION: str = "config.json" + async def json_read(path: Union[str, Path]) -> Any: """Read contents of a JSON file @@ -43,7 +45,7 @@ async def json_write(data: Any, path: Union[str, Path]) -> None: async def config_get( - key: str, *path: str, config_file: Union[str, Path] = "config.json" + key: str, *path: str, config_file: Union[str, Path] = DEFAULT_CONFIG_LOCATION ) -> Any: """Get a value of the config key by its path provided For example, `foo.bar.key` has a path of `"foo", "bar"` and the key `"key"` @@ -83,7 +85,7 @@ async def config_get( async def config_set( - key: str, value: Any, *path: str, config_file: Union[str, Path] = "config.json" + key: str, value: Any, *path: str, config_file: Union[str, Path] = DEFAULT_CONFIG_LOCATION ) -> None: """Set config's key by its path to the value @@ -99,14 +101,13 @@ async def config_set( await json_write( nested_set(await json_read(config_file), value, *(*path, key)), config_file ) - return async def config_delete( key: str, *path: str, missing_ok: bool = False, - config_file: Union[str, Path] = "config.json", + config_file: Union[str, Path] = DEFAULT_CONFIG_LOCATION, ) -> None: """Set config's key by its path diff --git a/src/libbot/pyrogram/classes/client.py b/src/libbot/pyrogram/classes/client.py index c246434..450aa13 100644 --- a/src/libbot/pyrogram/classes/client.py +++ b/src/libbot/pyrogram/classes/client.py @@ -358,7 +358,8 @@ class PyroClient(Client): ] logger.info( - "Registering commands %s with a default scope 'BotCommandScopeDefault'" + "Registering commands %s with a default scope 'BotCommandScopeDefault'", + commands ) await self.set_bot_commands(commands) diff --git a/src/libbot/sync/__main__.py b/src/libbot/sync/__main__.py index 7ece6cb..8ab01dc 100644 --- a/src/libbot/sync/__main__.py +++ b/src/libbot/sync/__main__.py @@ -9,6 +9,8 @@ try: except ImportError: from json import dumps, loads +DEFAULT_CONFIG_LOCATION: str = "config.json" + def json_read(path: Union[str, Path]) -> Any: """Read contents of a JSON file @@ -41,7 +43,7 @@ def json_write(data: Any, path: Union[str, Path]) -> None: def config_get( - key: str, *path: str, config_file: Union[str, Path] = "config.json" + key: str, *path: str, config_file: Union[str, Path] = DEFAULT_CONFIG_LOCATION ) -> Any: """Get a value of the config key by its path provided For example, `foo.bar.key` has a path of `"foo", "bar"` and the key `"key"` @@ -81,7 +83,7 @@ def config_get( def config_set( - key: str, value: Any, *path: str, config_file: Union[str, Path] = "config.json" + key: str, value: Any, *path: str, config_file: Union[str, Path] = DEFAULT_CONFIG_LOCATION ) -> None: """Set config's key by its path to the value @@ -95,14 +97,13 @@ def config_set( * `KeyError`: Key is not found under path provided """ json_write(nested_set(json_read(config_file), value, *(*path, key)), config_file) - return def config_delete( key: str, *path: str, missing_ok: bool = False, - config_file: Union[str, Path] = "config.json", + config_file: Union[str, Path] = DEFAULT_CONFIG_LOCATION, ) -> None: """Set config's key by its path diff --git a/tests/test_utils.py b/tests/test_utils.py index c0aef75..2dc3217 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -6,10 +6,12 @@ from libbot._utils import supports_argument def func1(foo: str, bar: str): + """Dummy function with specific arguments""" pass def func2(foo: str): + """Dummy function with specific arguments""" pass From cbc4fc36a1b74d3432f103b02415fbd7d17012d3 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 24 Nov 2024 21:56:08 +0200 Subject: [PATCH 44/47] Update dependency apscheduler to ~=3.11.0 --- requirements/pycord.txt | 2 +- requirements/pyrogram.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/pycord.txt b/requirements/pycord.txt index 520f02f..1742a0a 100644 --- a/requirements/pycord.txt +++ b/requirements/pycord.txt @@ -1,2 +1,2 @@ -apscheduler~=3.10.4 +apscheduler~=3.11.0 py-cord~=2.6.0 \ No newline at end of file diff --git a/requirements/pyrogram.txt b/requirements/pyrogram.txt index 572ac17..8599c5f 100644 --- a/requirements/pyrogram.txt +++ b/requirements/pyrogram.txt @@ -1,2 +1,2 @@ -apscheduler~=3.10.4 +apscheduler~=3.11.0 pyrofork~=2.3.32 \ No newline at end of file From f6596d1db6563be9143072abd3e5655384aaf5c3 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 1 Dec 2024 15:17:19 +0200 Subject: [PATCH 45/47] Update dependency pytest to v8.3.4 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index a46a131..33a5de1 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.13.0 pylint==3.3.1 pytest-asyncio==0.24.0 pytest-cov==6.0.0 -pytest==8.3.3 +pytest==8.3.4 tox==4.23.2 types-aiofiles==24.1.0.20240626 types-ujson==5.10.0.20240515 \ No newline at end of file From 5f4d0b09f9b3ef2edc546fe8ced081c75ec15cee Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 1 Dec 2024 21:32:47 +0200 Subject: [PATCH 46/47] Update dependency pylint to v3.3.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 33a5de1..3378b65 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.10.0 build==1.2.2.post1 isort==5.13.2 mypy==1.13.0 -pylint==3.3.1 +pylint==3.3.2 pytest-asyncio==0.24.0 pytest-cov==6.0.0 pytest==8.3.4 From 7e03a0c77949fc8685e42f8fd1680c3fc89d6459 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 13 Dec 2024 08:58:25 +0200 Subject: [PATCH 47/47] Update dependency pytest-asyncio to v0.25.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 3378b65..761c547 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,7 +3,7 @@ build==1.2.2.post1 isort==5.13.2 mypy==1.13.0 pylint==3.3.2 -pytest-asyncio==0.24.0 +pytest-asyncio==0.25.0 pytest-cov==6.0.0 pytest==8.3.4 tox==4.23.2