From 1544fa49347ba4d15bbcfeea9d53e8f4443278eb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2026 19:10:22 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 26.3.0](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...26.3.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 415bc31..565c1c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,6 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.11.0 + rev: 26.3.0 hooks: - id: black From 44cc56af1dae9f27fdb0c0b69e5ba53db24ece71 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2026 19:11:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tcms_api/__init__.py | 1 + tcms_api/xmlrpc.py | 1 - tests/krb5/integration_test.py | 1 - tests/krb5/kiwitcms_kerberos/db_init.py | 1 - tests/krb5/kiwitcms_kerberos/urls.py | 1 - tests/krb5/python_credentials_test.py | 1 - 6 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tcms_api/__init__.py b/tcms_api/__init__.py index 9b2f743..421b4e5 100644 --- a/tcms_api/__init__.py +++ b/tcms_api/__init__.py @@ -106,6 +106,7 @@ to open a pull request with your own examples! """ + import os from configparser import ConfigParser from datetime import datetime, timedelta diff --git a/tcms_api/xmlrpc.py b/tcms_api/xmlrpc.py index dfe7202..a9a5862 100644 --- a/tcms_api/xmlrpc.py +++ b/tcms_api/xmlrpc.py @@ -17,7 +17,6 @@ from tcms_api.version import __version__ - VERBOSE = 0 _PYTHON_VERSION = sys.version.replace("\n", "") diff --git a/tests/krb5/integration_test.py b/tests/krb5/integration_test.py index 222506a..858afcb 100755 --- a/tests/krb5/integration_test.py +++ b/tests/krb5/integration_test.py @@ -14,7 +14,6 @@ import requests from tcms_api import TCMS - try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: diff --git a/tests/krb5/kiwitcms_kerberos/db_init.py b/tests/krb5/kiwitcms_kerberos/db_init.py index 29eda6e..566ad24 100644 --- a/tests/krb5/kiwitcms_kerberos/db_init.py +++ b/tests/krb5/kiwitcms_kerberos/db_init.py @@ -4,7 +4,6 @@ from tcms.management.models import Classification from tcms.utils.permissions import initiate_user_with_default_setups - # this will be used for API calls bot = User.objects.create( username="kiwitcms-bot", diff --git a/tests/krb5/kiwitcms_kerberos/urls.py b/tests/krb5/kiwitcms_kerberos/urls.py index db0fa42..66ad0c1 100644 --- a/tests/krb5/kiwitcms_kerberos/urls.py +++ b/tests/krb5/kiwitcms_kerberos/urls.py @@ -3,7 +3,6 @@ from tcms.urls import urlpatterns - urlpatterns += [ re_path(r"", include("social_django.urls", namespace="social")), ] diff --git a/tests/krb5/python_credentials_test.py b/tests/krb5/python_credentials_test.py index 79a2351..bfb738f 100755 --- a/tests/krb5/python_credentials_test.py +++ b/tests/krb5/python_credentials_test.py @@ -12,7 +12,6 @@ import requests from tcms_api import TCMS - try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: