From d04367d34c1765f959091f02c168056b7ad661c6 Mon Sep 17 00:00:00 2001 From: vsoch Date: Fri, 17 Nov 2023 15:42:07 -0700 Subject: [PATCH] update final call and remove mypy Signed-off-by: vsoch --- .pre-commit-config.yaml | 5 ----- oras/provider.py | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ce2acd..fde1980 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,8 +22,3 @@ repos: rev: 6.1.0 hooks: - id: flake8 - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 - hooks: - - id: mypy - additional_dependencies: ["types-requests"] diff --git a/oras/provider.py b/oras/provider.py index 16475ae..2927b81 100644 --- a/oras/provider.py +++ b/oras/provider.py @@ -987,7 +987,9 @@ def authenticate_request(self, originalResponse: requests.Response) -> bool: logger.debug(f"Scope: {h.scope}") params["scope"] = h.scope - authResponse = self.session.get(h.realm, headers=headers, params=params) # type: ignore + authResponse = self.session.get( + h.realm, headers=headers, params=params, verify=self._tls_verify + ) if authResponse.status_code != 200: logger.debug(f"Auth response was not successful: {authResponse.text}") return False