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 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: