diff --git a/Pipfile b/Pipfile index cc7da62..177351f 100644 --- a/Pipfile +++ b/Pipfile @@ -4,16 +4,15 @@ url = "https://pypi.org/simple" verify_ssl = true [dev-packages] -pytest = "==7.4.4" -pytest-cov = "==4.1.0" +pytest = "==8.2.2" +pytest-cov = "==5.0.0" responses = "==0.21.0" -black = "==23.12.1" -flake8 = "==7.0.0" -pep8-naming = "==0.13.3" -twine = "==4.0.2" +black = "==24.4.2" +flake8 = "==7.1.0" +pep8-naming = "==0.14.1" [packages] -requests = "==2.31.0" +requests = "==2.32.3" testrail-api = { editable = true, path = "." } [requires] diff --git a/setup.cfg b/setup.cfg index 9fc410b..6b8174f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,6 @@ max-line-length = 120 count = True extend-ignore = E203 exclude = __version__.py + +[coverage:run] +omit = testrail_api/__version__.py diff --git a/setup.py b/setup.py index 08a980e..526b1bc 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,8 @@ long_description=long_description, long_description_content_type="text/markdown", use_scm_version={"write_to": "testrail_api/__version__.py"}, - setup_requires=["setuptools_scm==7.1.0"], - install_requires=["requests>=2.20.1"], + setup_requires=["setuptools_scm"], + install_requires=["requests>=2.32.3"], python_requires=">=3.8", include_package_data=True, keywords=[ diff --git a/testrail_api/_session.py b/testrail_api/_session.py index f94c2b7..777019c 100644 --- a/testrail_api/_session.py +++ b/testrail_api/_session.py @@ -119,7 +119,7 @@ def __get_url(url: str, warn_ignore: bool) -> str: raise TestRailError(f"Url is not set. Use argument url or env {Environ.URL}") _url = _url.rstrip("/") if _url.startswith("http://") and not warn_ignore: - warnings.warn("Using HTTP and not HTTPS may cause writeable API " "requests to return 404 errors") + warnings.warn("Using HTTP and not HTTPS may cause writeable API requests to return 404 errors") return _url @staticmethod