Skip to content

Commit

Permalink
Fixing some linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jomier <[email protected]>
  • Loading branch information
jjomier committed Jan 28, 2025
1 parent fdf0f87 commit 32897d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion applications/body_pose_estimation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This app currently supports three different input options:

1. pre-recorded video via video stream replayer (default)
2. v4l2 compatible input device (see V4L2 Support below)
3. DDS video stream (see DDS Suport below)
3. DDS video stream (see DDS Support below)

## Run Instructions

Expand Down
4 changes: 2 additions & 2 deletions applications/body_pose_estimation/body_pose_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
HolovizOp,
InferenceOp,
V4L2VideoCaptureOp,
VideoStreamReplayerOp
VideoStreamReplayerOp,
)
from holoscan.resources import UnboundedAllocator

Expand Down Expand Up @@ -369,7 +369,7 @@ def compose(self):
self,
name="replayer_source",
directory=self.sample_data_path,
**self.kwargs("replayer_source")
**self.kwargs("replayer_source"),
)
source_output = "output"
elif self.source == "dds":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def decompress_file(path):

with path.open("rb") as f:
meta = pickle.load(f)
if type(meta) == tuple:
if isinstance(meta, tuple):
shape, dtype = meta
data = f.read()
array = np.empty(shape=shape, dtype=dtype)
Expand Down
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ lint() {
pushd ${SCRIPT_DIR} > /dev/null

echo "Linting Python"
run_command ruff $DIR_TO_RUN --ignore E712 || exit_code=1
run_command ruff check $DIR_TO_RUN --ignore E712 || exit_code=1
run_command ${HOLOHUB_PY_EXE} -m isort -c $DIR_TO_RUN || exit_code=1
run_command ${HOLOHUB_PY_EXE} -m black --check $DIR_TO_RUN || exit_code=1

Expand Down

0 comments on commit 32897d8

Please sign in to comment.