-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
.github/workflows/python_lint.yml
Outdated
environment-file: ./environment.yml | ||
- name: Run mypy | ||
run: | | ||
mypy --ignore-missing-imports python/ribasim |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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:  --------- Co-authored-by: Bart de Koning <bart123-4@hotmail.com> Co-authored-by: Martijn Visser <mgvisser@gmail.com>
Mypy found a couple of mistakes, plus a bit of unused code.
Sidenote:
python/ribasim
is currently a bit too dynamic for my taste