Skip to content

Commit

Permalink
linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-muhirwa committed Oct 9, 2023
1 parent e70ef1e commit 883d207
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sphinx_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
# This should really just install sphinx. I'll have to add a separate group
# for sphinx dependencies, so we don't have to install everything.
run: make install --only dev
run: make install-dev

- name: Build documentation
run: |
Expand Down
1 change: 1 addition & 0 deletions src/groundlight/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def groundlight():
# For each method in the Groundlight class, create a function that can be called from the command line
for name, method in vars(Groundlight).items():
if callable(method) and not name.startswith("_"):
# pylint: disable=unnecessary-dunder-call
attached_method = method.__get__(gl)
cli_func = class_func_to_cli(attached_method)
cli_app.command()(cli_func)
Expand Down
2 changes: 1 addition & 1 deletion src/groundlight/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, endpoint: Optional[str] = None, api_token: Optional[str] = No
self.detectors_api = DetectorsApi(self.api_client)
self.image_queries_api = ImageQueriesApi(self.api_client)

def _fixup_image_query(self, iq: ImageQuery) -> ImageQuery: # pylint: disable=no-self-use
def _fixup_image_query(self, iq: ImageQuery) -> ImageQuery: # pylint: disable=useless-option-value
"""
Process the wire-format image query to make it more usable.
"""
Expand Down
1 change: 1 addition & 0 deletions src/groundlight/images.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=deprecated-module
import imghdr
from io import BufferedReader, BytesIO, IOBase
from typing import Union
Expand Down
2 changes: 1 addition & 1 deletion src/groundlight/internalapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __call__(self, function: Callable) -> Callable:
""":param callable: The function to invoke."""

@wraps(function)
def decorated(*args, **kwargs):
def decorated(*args, **kwargs): # pylint: disable=inconsistent-return-statements
delay = self.initial_delay
retry_count = 0

Expand Down

0 comments on commit 883d207

Please sign in to comment.