From 143f6eac6864cdd6e7c7b90b3592b3f9f2b87976 Mon Sep 17 00:00:00 2001 From: vyuroshchin <> Date: Fri, 16 Jan 2026 17:51:56 +0300 Subject: [PATCH 1/2] delete unused python3.8 from black config Signed-off-by: vyuroshchin <> --- pyproject.toml | 18 ++++++++++++++++-- tests/unit/test_utils.py | 10 ++++++---- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8cfcf86d..ef493ef8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,21 @@ requires = ['poetry-core'] [project] authors = [{ name="[Code Quality] Data & ML Squad", email="quality.data-ml@sonarsource.com" }] -classifiers = ['Environment :: Console', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3.14', 'Topic :: Software Development :: Quality Assurance'] +classifiers = [ + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', + 'Topic :: Software Development :: Quality Assurance' +] description = 'Sonar Scanner for the Python Ecosystem' keywords = ['sonar', 'sonarqube', 'sonarcloud', 'cleancode'] license = 'LGPL-3.0-only' @@ -20,7 +34,7 @@ repository = 'https://github.com/SonarSource/sonar-scanner-python' [tool] [tool.black] line-length = 120 -target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] +target-version = ['py39', 'py310', 'py311', 'py312', 'py313', 'py314'] [tool.coverage] [tool.coverage.run] diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 62188b31..526e10dd 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -43,14 +43,16 @@ def test_get_os(self): def test_get_arch(self): x64_machine_strs = ["amd64", "AmD64", "x86_64", "X86_64"] for machine_str in x64_machine_strs: - with self.subTest("amd64", machine_str=machine_str), unittest.mock.patch( - "platform.machine", return_value=machine_str + with ( + self.subTest("amd64", machine_str=machine_str), + unittest.mock.patch("platform.machine", return_value=machine_str), ): self.assertEqual(get_arch(), Arch.X64) arm_machine_strs = ["arm64", "ARm64"] for machine_str in arm_machine_strs: - with self.subTest("arm", machine_str=machine_str), unittest.mock.patch( - "platform.machine", return_value=machine_str + with ( + self.subTest("arm", machine_str=machine_str), + unittest.mock.patch("platform.machine", return_value=machine_str), ): self.assertEqual(get_arch(), Arch.AARCH64) From 2015a651dbd65eb903b7663559974c7146f1fd29 Mon Sep 17 00:00:00 2001 From: vyuroshchin <> Date: Fri, 16 Jan 2026 17:54:40 +0300 Subject: [PATCH 2/2] delete unused python3.8 from black config Signed-off-by: vyuroshchin <> --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8dd95a36..3acce14f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,7 +48,7 @@ Run `poetry run pytest tests/its --its` to run the its. To see the ITs in the VSCode test explorer, add the `--its` argument to the `python.testing.pytestArgs` setting in `.vscode/settings.json`. -The the following keys should be present: +The following keys should be present: ```json "python.testing.unittestArgs": ["-v", "-s", "tests", "-p", "test_*.py"], "python.testing.pytestEnabled": true,