|
2 | 2 |
|
3 | 3 | ## TODO |
4 | 4 |
|
5 | | -- [ ] Finish method naming and typing documentation. |
6 | | - |
7 | 5 | - [ ] Complete coverage |
8 | 6 |
|
| 7 | +- [ ] Get rid of deprecation warnings from test coverage |
| 8 | + |
| 9 | +- [ ] Finish method naming and typing documentation. |
| 10 | + |
9 | 11 | - [ ] Confront MyPy. See https://stackoverflow.com/a/51294709 for json help |
10 | 12 |
|
11 | 13 | - [ ] When typing resource, wrap the actual response type around the JSONType,, |
|
19 | 21 |
|
20 | 22 | - [ ] Set up CI! |
21 | 23 |
|
22 | | -- [ ] validate Calories From Fat: |
23 | | - `fitbit_client.exceptions.ValidationException: Calories From Fat must be a valid non-negative number. Currently it is "146.79".` |
24 | | - It needs to be a positive int! |
25 | | - |
26 | | -- [ ] Should mocks have type annotations? |
27 | | - |
28 | | -- [ ] consolidate fixures where possible |
29 | | - |
30 | 24 | - [ ] Consider a "replace_food_log" helper that does a delete + an add in one. |
31 | 25 | (there might be several of these that make sense--just take an ID and then the |
32 | 26 | signature of the "create" method) |
33 | 27 |
|
34 | 28 | - Docs! https://www.sphinx-doc.org/en/master/#get-started (put on github pages?) |
35 | 29 |
|
36 | | -- [ ] bring back the aliases! in client.py also put the resource initializations |
37 | | - in the mixin |
38 | | - |
39 | 30 | - [ ] Why does this log twice: |
40 | 31 |
|
41 | 32 | ```log |
|
69 | 60 | https://dev.fitbit.com/build/reference/web-api/developer-guide/best-practices/ |
70 | 61 | in README--they still apply! |
71 | 62 |
|
72 | | -- [ ] Form to chang scopes are part of OAuth flow? Maybe get rid of the cut and |
| 63 | +- [ ] Form to change scopes are part of OAuth flow? Maybe get rid of the cut and |
73 | 64 | paste method altogether? It's less to test... |
74 | 65 |
|
75 | | -- [ ] Response validation? Accidentally doing a GET instead of a POST on, e.g. |
76 | | - `food.json` will yield a response, but not the one you want! |
77 | | - |
78 | 66 | - [ ] Make the food download_food_logs (rename to `get_food_logs`) and food log |
79 | 67 | to CSV part of one helper package. It should expand the foods to have their |
80 | | - complete nutrition (a separate call for each unique food) |
81 | | - |
82 | | -- [ ] Accept "yesterday" keyword for dates? |
83 | | - |
84 | | -- [ ] `raise NotImplementedError` for |
85 | | - [intraday methods](https://dev.fitbit.com/build/reference/web-api/intraday/) |
86 | | - |
87 | | - - Impelement them and comment them out with a note that they are theoretical |
88 | | - unused/untested |
89 | | - - Note that they are in Resource classses AND have their own module |
90 | | - |
91 | | -- [ ] Figure out throttling when making multiple requests. |
92 | | - |
93 | | - - Can we make this more elegant than just putting in explict `sleep(.3)` |
94 | | - statements as needed? |
95 | | - - Can we handle it and retry a few times before erroring out? |
| 68 | + complete nutrition (a separate call for each unique food) (put this in a |
| 69 | + `tools` package??) |
96 | 70 |
|
97 | 71 | - [ ] PyPI deployment |
98 | 72 |
|
99 | | -- [ ] Extension: ?PRIVATE filters on methods that return PUBLIC and PRIVATE |
100 | | - stuff (API doesn't seem to have this) |
| 73 | +- [ ] Extension: PRIVATE filters on methods that return PUBLIC and PRIVATE stuff |
| 74 | + (API doesn't seem to have this). Maybe a sidecar database? |
101 | 75 |
|
102 | 76 | - [ ] Enum for units? (it'll be big, maybe just common ones?) |
103 | 77 |
|
|
0 commit comments