-
-
Notifications
You must be signed in to change notification settings - Fork 53
Add dataclasses, sync/async, feature-parity with the js-client and tests #23
Conversation
The "_sync" folder is generated automatically with the "make build_sync" command. All scripts in the "_async" folder will be translated into their synchronous form using "unasync" behind the scenes.
|
@leynier will do! |
|
What's dev container for @leynier ? |
https://code.visualstudio.com/docs/remote/devcontainerjson-reference |
It will make collaboration easier by defining a common sandbox for all developers among other things. It is not required to use, it is the decision of each dev at the end. |
|
@J0 @anand2312 approve changes whenever you are done reviewing and we'll merge! |
anand2312
left a comment
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; minor typo to be fixed
Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com>
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.57%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
1 similar comment
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.57%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
|
@leynier do you think sourcery could be added to pre-commit hooks? It was added yesterday in the postgrest-py library. |
I think it is not a good idea to add it as a pre-commit hook. Because I did the test by adding the hooks, that asked me for a login token, create the account and I log in, to log in I had to add I think it should just stay as a GitHub app associated with the repository and suggest changes to pull requests. |
The same will happen with the |
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.57%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
|
Hey @leynier - sorry about this! I'm from the Sourcery team and we've rolled out the pre-commit option fairly recently. It's usually a part of our paid Team tier, but we definitely want it to be available for use for free for open source projects. I just gave you access to it, so it should now fully work if you wanted to try it out. If you've got any feedback for us about the pre-commit hook or Sourcery more generally that would be incredibly helpful. Thanks! PS: @dreinon - I also gave you access to the pre-commit hook functionality |
|
@angrycaptain19 thank you, we appreciate it! Nevertheless, we would need you to provide free access to any contributor that wants to submit a PR to our libraries without explicitly providing free access to their account, which wouldn't make sense since anyone would have free access to the hook by cloning the libs. Therefore, in my opinion, we still wouldn't be interested in adding the hook. Correct me if I'm wrong 😊 |
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.57%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
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.
I think this looks great! Am looking forward to the new release :) Feel free to merge whenever ready.

To Do:
dataclassessync/asyncsupport withhttpxandunasyncGoTrueApiwith the implementation ofgotrue-jsGoTrueClientwith the implementation ofgotrue-jsgotrue-jsTests:
apiWithAutoConfirmDisabled.test.tsclientWithAutoConfirmDisabled.test.tsclientWithAutoConfirmEnabled.test.tsclientWithSignupsDisabled.test.tsprovider.test.tssubscriptions.test.tsIssues:
Fix #9
Fix #10
Fix #15
Fix #17
Fix #20
Fix #21
Fix #22
Fix supabase/supabase-py#70
Notes
_syncfolders are generated automatically with themake build_synccommand._asyncfolders will be translated into their synchronous form usingunasyncbehind the scenes.set_auth_cookieandget_user_by_cookiemethods of API later I don't think it still makes sense to have them in the Python library.