-
Notifications
You must be signed in to change notification settings - Fork 116
Document every public API in pyathena/ and check docstrings with ruff #919
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a9d42e2
Check docstrings in pyathena/ with ruff's pydocstyle rules
laughingman7743 13e43c3
Keep other codes when removing a file's docstring ignores
laughingman7743 919d238
Say that ruff checks existing private docstrings, not only their format
laughingman7743 05a4fac
Document the model classes
laughingman7743 66b3ace
Document the result sets
laughingman7743 e6b4386
Document the S3 filesystem
laughingman7743 1191251
Document the SQLAlchemy dialects
laughingman7743 f841ea6
Document the connections, base cursors and shared modules
laughingman7743 748a6ac
Document the Arrow, pandas, Polars, S3FS and Spark cursors
laughingman7743 24213c7
Check every docstring in pyathena/ without per-file exceptions
laughingman7743 8753ca8
Say when on_start_query_execution and kill_on_interrupt apply
laughingman7743 35fad82
Align the new docstrings with the current interrupt and cache behavior
laughingman7743 6be315e
Limit the chunking and description docstrings to where they apply
laughingman7743 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2026 The PyAthena authors | ||
| # | ||
| # Licensed under the MIT License. | ||
| # See LICENSE or https://opensource.org/licenses/MIT. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| """Native asyncio connections and cursors for Amazon Athena.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2026 The PyAthena authors | ||
| # | ||
| # Licensed under the MIT License. | ||
| # See LICENSE or https://opensource.org/licenses/MIT. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| """Native asyncio cursor that returns Athena query results as Apache Arrow tables.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2026 The PyAthena authors | ||
| # | ||
| # Licensed under the MIT License. | ||
| # See LICENSE or https://opensource.org/licenses/MIT. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| """Native asyncio cursor that returns Athena query results as pandas DataFrames.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2026 The PyAthena authors | ||
| # | ||
| # Licensed under the MIT License. | ||
| # See LICENSE or https://opensource.org/licenses/MIT. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| """Native asyncio cursor that returns Athena query results as Polars DataFrames.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2026 The PyAthena authors | ||
| # | ||
| # Licensed under the MIT License. | ||
| # See LICENSE or https://opensource.org/licenses/MIT. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| """Native asyncio cursor that reads Athena CSV query results through ``AioS3FileSystem``.""" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Self-review round 2 (claims, callers, evidence), full pass: CLEAN after PR-body updates
Base
2fcbcdbe, head358d15542471bdbc3cadb1678ba7d5c04c1397ae.Claims checked:
__init__, 279 property getters, 91 classes/functions/methods). That is the 508 D findings plus the three D101 classes. The PR body now states it that way (the helpers' self-reported totals were higher).pass.__init__.pyfiles now carry the 2026 header (checked withgit show origin/master:<f> | wc -c).scripts/check_license_headers.pypasses.on_start_query_execution: all ten cursors call_call_on_start_query_executionright after_execute(), and_execute()returns a cached ID from_find_previous_query_idwithoutStartQueryExecution. The new wording, and the sentence added todocs/usage.md(anchored here), match that. The same sentence is not added todocs/sqlalchemy.md, because the SQLAlchemy dialects never passcache_size.kill_on_interrupt: checked againstBaseCursor._poll/_start_executionandAioBaseCursorafter Re-raise and stop interrupted queries in the SQL cursors, sharing the Spark handling #853, and againstdocs/usage.md"Query cancellation on interrupt" anddocs/aio.md"Task cancellation". The PR body bullet was stale (it named only two docstrings) and is updated.ruff --select D417,D415,D101withoutignore-decoratorspasses.Check every docstring...,Say when on_start_query_execution...andAlign the new docstrings...match the diff.Deferred, as agreed with the maintainer: pre-existing docstring errors go to a separate PR, and suspected code bugs will be verified and then filed as issues.