Skip to content

Commit

Permalink
update final call and remove mypy
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Nov 17, 2023
1 parent 10579ba commit d04367d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 3 additions & 1 deletion oras/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d04367d

Please sign in to comment.