Skip to content

Commit ce3426b

Browse files
committed
fix: adding permission to linter
1 parent 62d18f0 commit ce3426b

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
env:
1717
PROJECT_FOLDER: "loopstructural"
1818
PYTHON_VERSION: 3.9
19+
permissions:
20+
contents: write
1921

2022

2123
jobs:

loopstructural/gui/visualisation/feature_list_widget.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def _get_vector_scale(self, scale: Optional[Union[float, int]] = None) -> float:
5757
return scale
5858

5959
def add_feature(self, feature):
60+
"""Add a feature to the feature list.
61+
62+
:param feature: The feature to add.
63+
:type feature: Feature
64+
"""
6065
featureItem = QTreeWidgetItem(self.treeWidget)
6166
featureItem.setText(0, feature.name)
6267

0 commit comments

Comments
 (0)