Skip to content

Commit ec74d9d

Browse files
committed
ci: fix pylint
1 parent 3c2e156 commit ec74d9d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

capella2polarion/data_model/document_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
from __future__ import annotations
66

77
import dataclasses
8+
import typing as t
89

910
import polarion_rest_api_client as polarion_api
1011

11-
from capella2polarion.documents import text_work_item_provider
12+
if t.TYPE_CHECKING:
13+
from capella2polarion.documents import text_work_item_provider
1214

1315
__all__ = ["DocumentData", "DocumentInfo"]
1416

capella2polarion/documents/document_renderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __insert_work_item(
108108
pid=work_item.id, lid=layout_index, custom_info=custom_info
109109
)
110110

111-
logger.warning(f"Error inserting work item: {error_msg}")
111+
logger.warning("Error inserting work item: %s", error_msg)
112112
return polarion_html_helper.RED_TEXT.format(
113113
text=f"Error inserting work item: {error_msg}"
114114
)
@@ -121,7 +121,7 @@ def __link_work_item(self, obj: object) -> str:
121121
pid=work_item.id, project=proj_id
122122
)
123123

124-
logger.warning(f"Error linking work item: {error_msg}")
124+
logger.warning("Error linking work item: %s", error_msg)
125125
return polarion_html_helper.RED_TEXT.format(
126126
text=f"Error linking work item: {error_msg}"
127127
)

capella2polarion/plugins/plugin_interfaces.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
capella_polarion_worker: polarion_worker.CapellaPolarionWorker,
3434
model: capellambse.MelodyModel,
3535
additional_configuration: AdditionalAttributes,
36-
**kwargs,
36+
**kwargs, # pylint: disable=unused-argument
3737
):
3838
self.capella_polarion_worker = capella_polarion_worker
3939
self.model = model
@@ -42,4 +42,3 @@ def __init__(
4242
@abc.abstractmethod
4343
def run(self, **kwargs):
4444
"""Run your custom code and send the results to polarion."""
45-
pass

0 commit comments

Comments
 (0)