Skip to content
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

[DOCS] ADR around public API docstrings #10798

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Dec 19, 2024

Let's be a bit more stringent with our requirements when decorating with @public_api

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses ruff format + ruff check)
  • Appropriate tests and docs have been updated

For more information about contributing, visit our community resources.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 0a46b36
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/676441070b80f00008b9cc74


## Status

Accepted
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps presumptuous of me 😬

Comment on lines 137 to 138
public_api_introspector.add(func)
existing_docstring = func.__doc__ if func.__doc__ else ""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change in ordering - let's fail fast if we don't have the docstring before adding to the introspector. Marginal performance gains doesn't really matter tbh

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.70%. Comparing base (17c2383) to head (0a46b36).
Report is 2 commits behind head on develop.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #10798   +/-   ##
========================================
  Coverage    80.70%   80.70%           
========================================
  Files          464      464           
  Lines        40373    40373           
========================================
  Hits         32582    32582           
  Misses        7791     7791           
Flag Coverage Δ
3.10 69.98% <ø> (ø)
3.10 aws_deps ?
3.10 clickhouse ?
3.11 69.98% <ø> (ø)
3.11 aws_deps ?
3.11 big ?
3.11 clickhouse ?
3.12 69.98% <ø> (ø)
3.12 athena or openpyxl or pyarrow or project or sqlite or aws_creds 56.41% <ø> (ø)
3.12 aws_deps 46.22% <ø> (ø)
3.12 big 54.76% <ø> (ø)
3.12 bigquery 48.51% <ø> (ø)
3.12 databricks 50.28% <ø> (ø)
3.12 filesystem 62.68% <ø> (ø)
3.12 mssql 51.28% <ø> (ø)
3.12 mysql 51.69% <ø> (ø)
3.12 postgresql 54.42% <ø> (ø)
3.12 snowflake 51.10% <ø> (ø)
3.12 spark 57.69% <ø> (ø)
3.12 spark_connect 46.51% <ø> (ø)
3.12 trino 52.25% <ø> (ø)
3.9 70.01% <ø> (ø)
3.9 athena or openpyxl or pyarrow or project or sqlite or aws_creds 56.41% <ø> (ø)
3.9 aws_deps 46.24% <ø> (ø)
3.9 big 54.77% <ø> (ø)
3.9 bigquery 48.51% <ø> (ø)
3.9 clickhouse 43.12% <ø> (ø)
3.9 databricks 50.28% <ø> (+<0.01%) ⬆️
3.9 filesystem 62.69% <ø> (ø)
3.9 mssql 51.26% <ø> (ø)
3.9 mysql 51.67% <ø> (ø)
3.9 postgresql 54.40% <ø> (ø)
3.9 snowflake 51.10% <ø> (ø)
3.9 spark 57.66% <ø> (ø)
3.9 spark_connect 46.52% <ø> (ø)
3.9 trino 52.23% <ø> (ø)
cloud 0.00% <ø> (ø)
docs-basic 54.07% <ø> (ø)
docs-creds-needed 52.95% <ø> (ø)
docs-spark 52.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cdkini cdkini enabled auto-merge December 19, 2024 18:33
Copy link
Contributor

@billdirks billdirks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cdkini cdkini added this pull request to the merge queue Dec 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants