-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor with API #2
Conversation
- Amend `README.rst` - Add metadata to `__init__.py` - Remove license/copyright notices from other places as we are now using `README.rst` for this purpose. - Remove `version.py`
cc6e8aa
to
f3eef38
Compare
628ec4a
to
fa17e99
Compare
fa17e99
to
559b20f
Compare
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.
Alright, I went through all the files I think :)
First of all, great work with all this! looks clean and organised! Having also documentation autogenerated on readthedocs will help a lot when we work more with this.
I have comments inline, and then some general comments here:
- I'm not too familiar with rest apis and databases, so I was relying on the tests to get a better grip of the provided functionalities here. Do I understand correctly that adding a record to the database is not supported yet?
- For timeouts, we generally use seconds as units in pytroll modules (can be a floating point number)
- Regarding type annotations: I'm not a big fan in general, sorry :) Do you think it would be possible to make them simpler by removing cases we don't need? or refactoring them to simpler types?
- For linting, we use ruff, see the rules we use here for example: https://github.com/pytroll/pytroll-watchers/blob/main/pyproject.toml#L50-L52
Ok, I'll stop here :) but again, great work!
New functionality has been added to the MongoDB class. As a result, the errors are now raised there instead of the API routes. TODO: Documentation and more tests.
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.
Ok, here comes the next batch of comments. Again, great work, I'm just very opinionated on code readability, sorry :)
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.
LGTM
This PR includes the following: