diff --git a/solution_charge_amps/__init__.py b/solution_charge_amps/__init__.py index ad61321..23d1e35 100644 --- a/solution_charge_amps/__init__.py +++ b/solution_charge_amps/__init__.py @@ -18,53 +18,46 @@ def default_config(): try: from .endpoints import register_blueprint # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t implement any custom ' - 'endpoints') + logger.info("solution_charge_amps doesn't implement any custom " "endpoints") try: from .event_handlers import register_event_handlers # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t implement any event ' - 'handlers') + logger.info("solution_charge_amps doesn't implement any event " "handlers") try: from .limeobject_classes import register_limeobject_classes # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t implement any ' - 'limeobject classes') + logger.info("solution_charge_amps doesn't implement any " "limeobject classes") try: from .web_components import register_web_components # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t implement any ' - 'web-components') + logger.info("solution_charge_amps doesn't implement any " "web-components") try: from .translations import register_translations # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t contain any ' - 'translations') + logger.info("solution_charge_amps doesn't contain any " "translations") try: from .config import register_config # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t contain any config') + logger.info("solution_charge_amps doesn't contain any config") try: from .tasks import get_task_modules # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t implement any ' - 'async tasks') + logger.info("solution_charge_amps doesn't implement any " "async tasks") try: from .tasks import register_scheduled_tasks # noqa except ImportError: - logger.info('solution_charge_amps doesn\'t contain any ' - 'scheduled tasks') + logger.info("solution_charge_amps doesn't contain any " "scheduled tasks") def register_static_content(): - ''' + """ Returns a list with tuples: (route, path_to_static_content). @@ -79,12 +72,12 @@ def register_static_content(): add the function `register_static_content` to the module. The function takes no arguments and shall return a list with tuples in the same form as this function. - ''' + """ static_filepaths = [] try: from .web_components import register_static_content as wc_reg_static + static_filepaths += wc_reg_static() except ImportError: - logger.info('solution_charge_amps doesn\'t contain any' - 'static content') + logger.info("solution_charge_amps doesn't contain any" "static content") return static_filepaths diff --git a/solution_charge_amps/limeobject_classes/common.py b/solution_charge_amps/limeobject_classes/common.py index d4b782d..80e5df9 100644 --- a/solution_charge_amps/limeobject_classes/common.py +++ b/solution_charge_amps/limeobject_classes/common.py @@ -39,4 +39,3 @@ def create_automated_flow_participant_history( attach_active_coworker=True, auto_relate=False, ) - diff --git a/solution_charge_amps/limeobject_classes/company.py b/solution_charge_amps/limeobject_classes/company.py index 63d5776..3f679c4 100644 --- a/solution_charge_amps/limeobject_classes/company.py +++ b/solution_charge_amps/limeobject_classes/company.py @@ -33,4 +33,3 @@ def after_update(self, unsaved_self, **kwargs): def register_limeobject_classes(register_class): register_class("company", Company) - diff --git a/solution_charge_amps/limeobject_classes/coworker.py b/solution_charge_amps/limeobject_classes/coworker.py index 232fcc9..000476c 100644 --- a/solution_charge_amps/limeobject_classes/coworker.py +++ b/solution_charge_amps/limeobject_classes/coworker.py @@ -31,4 +31,3 @@ def after_update(self, unsaved_self, **kwargs): def register_limeobject_classes(register_class): register_class("coworker", Coworker) - diff --git a/solution_charge_amps/limeobject_classes/deal.py b/solution_charge_amps/limeobject_classes/deal.py index b277448..deaf06a 100644 --- a/solution_charge_amps/limeobject_classes/deal.py +++ b/solution_charge_amps/limeobject_classes/deal.py @@ -101,4 +101,3 @@ def _get_idx(obj: LimeObject): ), None, ) - diff --git a/solution_charge_amps/limeobject_classes/document.py b/solution_charge_amps/limeobject_classes/document.py index 361395a..72afc85 100644 --- a/solution_charge_amps/limeobject_classes/document.py +++ b/solution_charge_amps/limeobject_classes/document.py @@ -54,4 +54,3 @@ def _create_document_history(document: Document, uow: UnitOfWork): attach_active_coworker=True, auto_relate=False, ) - diff --git a/solution_charge_amps/limeobject_classes/history.py b/solution_charge_amps/limeobject_classes/history.py index a925b33..56e6550 100644 --- a/solution_charge_amps/limeobject_classes/history.py +++ b/solution_charge_amps/limeobject_classes/history.py @@ -104,4 +104,3 @@ def _handle_sales_contact_on_object(parent_object: LimeObject): _handle_sales_contact_on_object(prev_parent_object) except lime_errors.NotFoundError: pass # Ignore if the previous object is not found - diff --git a/solution_charge_amps/limeobject_classes/lead.py b/solution_charge_amps/limeobject_classes/lead.py index ed29d5c..d1cad6c 100644 --- a/solution_charge_amps/limeobject_classes/lead.py +++ b/solution_charge_amps/limeobject_classes/lead.py @@ -101,4 +101,3 @@ def _create_automated_flow_participant( uow.add(affected_object) return participant - diff --git a/solution_charge_amps/limeobject_classes/person.py b/solution_charge_amps/limeobject_classes/person.py index 7a59eba..e2255cb 100644 --- a/solution_charge_amps/limeobject_classes/person.py +++ b/solution_charge_amps/limeobject_classes/person.py @@ -31,4 +31,3 @@ def after_update(self, unsaved_self, **kwargs): def register_limeobject_classes(register_class): register_class("person", Person) - diff --git a/solution_charge_amps/limeobject_classes/todo.py b/solution_charge_amps/limeobject_classes/todo.py index 1f804a0..0a828a6 100644 --- a/solution_charge_amps/limeobject_classes/todo.py +++ b/solution_charge_amps/limeobject_classes/todo.py @@ -20,4 +20,3 @@ def after_update(self, unsaved_self, **kwargs): def register_limeobject_classes(register_class): register_class("todo", Todo) - diff --git a/tests/custom_dsl.py b/tests/custom_dsl.py index 416f102..1b8a92e 100644 --- a/tests/custom_dsl.py +++ b/tests/custom_dsl.py @@ -940,4 +940,3 @@ bw_nextstep_time: type: time """ - diff --git a/tests/lime_sales/conftest.py b/tests/lime_sales/conftest.py index 76d6e0e..1d2e0ed 100644 --- a/tests/lime_sales/conftest.py +++ b/tests/lime_sales/conftest.py @@ -39,4 +39,3 @@ def lime_app(lime_app) -> LimeApplication: @pytest.fixture def loaded_plugins(no_registered_limeobjects): return lime_plugins.load_plugins(config=lime_config.config) - diff --git a/tests/lime_sales/limeobject_classes/lime_sales_deal_test.py b/tests/lime_sales/limeobject_classes/lime_sales_deal_test.py index 8e6be6f..ffbf4cf 100644 --- a/tests/lime_sales/limeobject_classes/lime_sales_deal_test.py +++ b/tests/lime_sales/limeobject_classes/lime_sales_deal_test.py @@ -49,4 +49,3 @@ def test_expecteddate_when_setting_status_to_closed_status( deal = next(iter(save_lime_objects(deal))) assert deal.properties.expecteddate.value - diff --git a/tests/lime_sales/limeobject_classes/lime_sales_document_test.py b/tests/lime_sales/limeobject_classes/lime_sales_document_test.py index a183f64..534f115 100644 --- a/tests/lime_sales/limeobject_classes/lime_sales_document_test.py +++ b/tests/lime_sales/limeobject_classes/lime_sales_document_test.py @@ -24,4 +24,3 @@ def test_create_autolog_history_when_new( assert history.properties.coworker.value == lime_app.coworker.id except StopIteration: assert False, "history should be in the uow" - diff --git a/tests/lime_sales/limeobject_classes/lime_sales_history_test.py b/tests/lime_sales/limeobject_classes/lime_sales_history_test.py index 832f6c0..74689dd 100644 --- a/tests/lime_sales/limeobject_classes/lime_sales_history_test.py +++ b/tests/lime_sales/limeobject_classes/lime_sales_history_test.py @@ -97,4 +97,3 @@ def test_latestsalescontact_is_set_when_salescontact_history_is_attached( company.properties.latestsalescontact.value.astimezone(pytz.UTC).isoformat() == test_date.isoformat() ) - diff --git a/tests/lime_sales/limeobject_classes/lime_sales_lead_test.py b/tests/lime_sales/limeobject_classes/lime_sales_lead_test.py index fe8733c..f8048e5 100644 --- a/tests/lime_sales/limeobject_classes/lime_sales_lead_test.py +++ b/tests/lime_sales/limeobject_classes/lime_sales_lead_test.py @@ -114,4 +114,3 @@ def test_trigger_automatedflow( except StopIteration: assert False, "The lead should have a automatedflowparticipant related" - diff --git a/tests/test_insanity.py b/tests/test_insanity.py index f436633..d46cc05 100644 --- a/tests/test_insanity.py +++ b/tests/test_insanity.py @@ -2,5 +2,5 @@ def test_insanity(): - _lime = 'Lime CRM' - assert _lime == 'Lime CRM' + _lime = "Lime CRM" + assert _lime == "Lime CRM"