Skip to content

Commit

Permalink
Fixed liniting and black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Feb 19, 2024
1 parent d0a4b45 commit cdf2d5c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 29 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ install: ## Install the project in dev mode.
.PHONY: fmt
fmt: ## Format code using black & isort.
$(ENV_PREFIX)isort wallaby_hires/
$(ENV_PREFIX)black -l 79 wallaby_hires/
$(ENV_PREFIX)black -l 79 tests/
$(ENV_PREFIX)black -l 90 wallaby_hires/
$(ENV_PREFIX)black -l 90 tests/

.PHONY: lint
lint: ## Run pep8, black, mypy linters.
$(ENV_PREFIX)flake8 wallaby_hires/
$(ENV_PREFIX)black -l 79 --check wallaby_hires/
$(ENV_PREFIX)black -l 79 --check tests/
$(ENV_PREFIX)black -l 90 --check wallaby_hires/
$(ENV_PREFIX)black -l 90 --check tests/
$(ENV_PREFIX)mypy --ignore-missing-imports wallaby_hires/

.PHONY: test
Expand Down
1 change: 0 additions & 1 deletion wallaby_hires/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
__package__ = "wallaby_hires"
# The following imports are the binding to the DALiuGE system
from dlg import droputils, utils

# extend the following as required
from .apps import MyAppDROP
Expand Down
12 changes: 4 additions & 8 deletions wallaby_hires/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@
Be creative! do whatever you need to do!
"""
import logging
import pickle

from dlg.drop import BarrierAppDROP, BranchAppDrop
from dlg.drop import BarrierAppDROP
from dlg.meta import (
dlg_batch_input,
dlg_batch_output,
dlg_bool_param,
dlg_component,
dlg_float_param,
dlg_int_param,
dlg_streaming_input,
dlg_string_param,
)

logger = logging.getLogger(__name__)
Expand All @@ -30,12 +26,12 @@
# @brief MyApp
# @details Template app for demonstration only!
# Replace the documentation with whatever you want/need to show in the DALiuGE
# workflow editor. The appclass parameter should contain the relative Pythonpath
# to import MyApp.
# workflow editor. The appclass parameter should contain the relative
# Pythonpath to import MyApp.
#
# @par EAGLE_START
# @param category PythonApp
# @param[in] param/appclass Application Class/wallaby_hires.MyApp/String/readonly/
# @param[in] param/appclass Application Class/wallaby_hires.MyApp/String/
# \~English Import direction for application class
# @param[in] param/dummy Dummy parameter/ /String/readwrite/
# \~English Dummy modifyable parameter
Expand Down
19 changes: 3 additions & 16 deletions wallaby_hires/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,18 @@
Be creative! do whatever you need to do!
"""
import base64
import logging
import os
import pickle

from dlg.drop import AbstractDROP
from dlg.meta import (
dlg_batch_input,
dlg_batch_output,
dlg_bool_param,
dlg_component,
dlg_float_param,
dlg_int_param,
dlg_streaming_input,
dlg_string_param,
)

logger = logging.getLogger(__name__)

##
# @brief MyData
# @details Template app for demonstration only!
# Replace the documentation with whatever you want/need to show in the DALiuGE
# workflow editor. The dataclass parameter should contain the relative Pythonpath
# to import MyApp.
# workflow editor. The dataclass parameter should contain the relative
# Pythonpath to import MyApp.
#
# @par EAGLE_START
# @param category DataDrop
Expand Down Expand Up @@ -64,4 +51,4 @@ def getIO(self):

@property
def dataURL(self):
return f"Hello from the dataURL method"
return "Hello from the dataURL method"

0 comments on commit cdf2d5c

Please sign in to comment.