Skip to content

Commit

Permalink
fix PEP8 violations and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Feb 18, 2025
1 parent d945e53 commit 2f9dba1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/blueapi/cli/scratch.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def scratch_install(path: Path, timeout: float = _DEFAULT_INSTALL_TIMEOUT) -> No
Args:
path: Path to the checked out repository
timeout: Time to wait for for installation subprocess
timeout: Time to wait for installation subprocess
"""

_validate_directory(path)
Expand Down
2 changes: 1 addition & 1 deletion src/blueapi/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def start_task(self, task: WorkerTask) -> WorkerTask:
Instruct the worker to start a stored task immediately
Args:
task_id: ID for the task
task: WorkerTask to start
Returns:
WorkerTask: Acknowledgement of request
Expand Down
2 changes: 1 addition & 1 deletion src/blueapi/service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ async def add_api_version_header(
async def inject_propagated_observability_context(
request: Request, call_next: Callable[[Request], Awaitable[Response]]
) -> Response:
"""Middleware to extract the any propagated observability context from the
"""Middleware to extract any propagated observability context from the
HTTP headers and attach it to the local one.
"""
if CONTEXT_HEADER in request.headers:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/client/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def test_auth_request_functionality(
)
calls = mock_get_env.calls
assert len(calls) == 1
cacheManager = SessionCacheManager(cached_valid_token)
cache = cacheManager.load_cache()
cache_manager = SessionCacheManager(cached_valid_token)
cache = cache_manager.load_cache()
assert calls[0].request.headers["Authorization"] == f"Bearer {cache.access_token}"


Expand Down
6 changes: 3 additions & 3 deletions tests/unit_tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ def test_oauth_config_model_post_init(
oidc_config.device_authorization_endpoint
== oidc_well_known["device_authorization_endpoint"]
)
assert (oidc_config.authorization_endpoint) == oidc_well_known[
"authorization_endpoint"
]
assert (
oidc_config.authorization_endpoint == oidc_well_known["authorization_endpoint"]
)
assert oidc_config.token_endpoint == oidc_well_known["token_endpoint"]
assert oidc_config.issuer == oidc_well_known["issuer"]
assert oidc_config.jwks_uri == oidc_well_known["jwks_uri"]
Expand Down

0 comments on commit 2f9dba1

Please sign in to comment.