You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ A demo deployed with Render can be [accessed here](https://st-link-analysis-demo
26
26
- View control bar for zooming, fitting, and centering the view, making it easier to navigate your graphs.
27
27
- View all properties of the selected elements in a side panel.
28
28
- Highlights neighboring nodes or edges when an element is selected.
29
-
-**Node Actions (Expand / Remove):** Enable node removal and expansion using the `node_actions` parameter. Removal can be triggered by a delete keydown or a remove button click, while expansion occurs on a double-click or expand button click. When these events are triggered, the event details and selected node IDs are sent back to the Streamlit app as the component’s return value.
29
+
-**Node Actions (Expand / Remove):** Enable node removal and expansion using the `node_actions` parameter. Removal can be triggered by a delete keydown or a remove button click, while expansion occurs on a double-click or expand button click. When these events are triggered, the event details and selected node IDs are sent back to the Streamlit app as the component's return value.
30
30
31
31
## Installation
32
32
@@ -136,13 +136,24 @@ streamlit run app.py
136
136
137
137
### Testing
138
138
139
-
Run linting and tests:
139
+
Run linting, type checking, and tests:
140
140
141
141
```bash
142
142
ruff check
143
+
mypy st_link_analysis/
143
144
pytest
144
145
```
145
146
147
+
### Type Checking
148
+
149
+
This project uses type hints and mypy for static type checking to improve code maintainability and developer experience. The mypy configuration is defined in `pyproject.toml` with strict settings to catch potential type-related issues early.
150
+
151
+
To run type checking locally:
152
+
153
+
```bash
154
+
mypy st_link_analysis/
155
+
```
156
+
146
157
## Contributing
147
158
148
159
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
0 commit comments