Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy errors and add github actions job #229

Merged
merged 10 commits into from
May 19, 2023
Merged

Fix mypy errors and add github actions job #229

merged 10 commits into from
May 19, 2023

Conversation

Hofer-Julian
Copy link
Contributor

Mypy found a couple of mistakes, plus a bit of unused code.

Sidenote: python/ribasim is currently a bit too dynamic for my taste

@Hofer-Julian Hofer-Julian linked an issue May 19, 2023 that may be closed by this pull request
4 tasks
@Hofer-Julian Hofer-Julian removed a link to an issue May 19, 2023
4 tasks
environment-file: ./environment.yml
- name: Run mypy
run: |
mypy --ignore-missing-imports python/ribasim
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this run only on the ribasim subdirectory? Also add newline at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, it is hard to do that locally because of this: pypa/setuptools#3518
However, we don't hit that on the CI so I've added it.

Hofer-Julian and others added 5 commits May 19, 2023 12:56
This is my first draft of how to add a new node type. Please let me know
if anything is incorrect or incomplete in such a way that I can fix it,
so that it helps me understand the code better. Informed by #205.

---------

Co-authored-by: Bart de Koning <bart123-4@hotmail.com>
Co-authored-by: Martijn Visser <mgvisser@gmail.com>
I made sure that the node representation in the ribasim python graph
plot and the QGIS plugin are consistent (in terms of marker and color)
and added an option for a legend in the ribasim python plot:

![ribasim_python_graph](https://github.com/Deltares/Ribasim/assets/74617371/a4f0c577-abac-4039-bc23-7206fc5b4d73)

---------

Co-authored-by: Bart de Koning <bart123-4@hotmail.com>
Co-authored-by: Martijn Visser <mgvisser@gmail.com>
@Hofer-Julian Hofer-Julian merged commit 70ae10b into main May 19, 2023
@Hofer-Julian Hofer-Julian deleted the mypy branch May 19, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants