Skip to content

Commit

Permalink
🚨 Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Feb 27, 2024
1 parent d41cd2c commit 4614c46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apricot/oauth/oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
token_url: str,
) -> None:
# Set attributes
self.bearer_token_ = None
self.bearer_token_: str | None = None
self.client_secret = client_secret
self.domain = domain
self.token_url = token_url
Expand Down Expand Up @@ -122,7 +122,7 @@ def query(self, url: str) -> dict[str, Any]:
"""

def query_(url: str) -> requests.Response:
return self.session_application.get(
return self.session_application.get( # type: ignore[no-any-return]
url=url,
headers={"Authorization": f"Bearer {self.bearer_token}"},
client_id=self.session_application._client.client_id,
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ packages = ["."]
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black~=24.2.0",
"mypy~=1.8.0",
"ruff~=0.2.0",
"types-oauthlib~=3.2.0",
"black~=24.2",
"mypy~=1.8",
"ruff~=0.2",
"types-oauthlib~=3.2",
"types-redis~=4.6",
"types-requests~=2.31",
]

[tool.hatch.envs.lint.scripts]
Expand Down

0 comments on commit 4614c46

Please sign in to comment.