ideafast / middleware-services

Python API containing endpoints for smartphone hub applications and transfer to data portal
0 stars 0 forks source link

Implement test automation (nox) and linting and typing through pre-commit. Resolves #22 #37

Closed davidverweij closed 3 years ago

davidverweij commented 3 years ago

This PR implements linting, typing and tests such that upcoming contributions are sound - this should help with error prevention in the long run.

More specifically, changes include (as suggested in #22):

As expected, these prompted a breadth of required changes which are all resolved. A few simply cannot due to our setup, and have been added to config files for mypy and flake8 to be ignored.

Test

To Do

As referred to above, a few issues and todo's arose from the adoption of linting, tests and typing. These are documented in separate issues to work on.

lgtm-com[bot] commented 3 years ago

This pull request fixes 9 alerts when merging 833a99c7ae22edf5e5c3ee8a16dbcfc12ced49ad into a6ba0ad3e9040a0c6efd78ca4c2caf4adcf28264 - view on LGTM.com

fixed alerts:

lgtm-com[bot] commented 3 years ago

This pull request fixes 9 alerts when merging e7fdbf100c1eb71f79d3b3d04f8a3b9e4f8c276e into a6ba0ad3e9040a0c6efd78ca4c2caf4adcf28264 - view on LGTM.com

fixed alerts:

lgtm-com[bot] commented 3 years ago

This pull request fixes 9 alerts when merging b349d2fd487456563b2449ea294d14126d9fc4af into a6ba0ad3e9040a0c6efd78ca4c2caf4adcf28264 - view on LGTM.com

fixed alerts:

jawrainey commented 3 years ago

LGTM and pytest via nox now returns correct state