Skip to content

Conversation

@allisonwang-db
Copy link
Owner

@allisonwang-db allisonwang-db commented Jul 22, 2025

Remove Python version upper bound and support Python 3.12 and above versions.

Summary by CodeRabbit

  • Chores
    • Introduced automated continuous integration to test across multiple Python versions and report coverage.
    • Updated .gitignore to exclude directories related to Claude Code and Gemini tools.
    • Relaxed Python version constraints and added pyspark as a development dependency.

@coderabbitai
Copy link

coderabbitai bot commented Jul 22, 2025

Warning

Rate limit exceeded

@allisonwang-db has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 4 minutes and 8 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 0f7d060 and 5ad2b22.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • .github/workflows/ci.yml (1 hunks)
  • pyproject.toml (2 hunks)

Walkthrough

A new GitHub Actions workflow for continuous integration was added, enabling automated testing across multiple Python versions. The .gitignore was updated to exclude directories related to "Claude Code" and "Gemini." The Python version constraint in pyproject.toml was relaxed, and pyspark and pytest-cov were added as development dependencies.

Changes

File(s) Change Summary
.github/workflows/ci.yml Added a CI workflow for multi-version Python testing, dependency caching, and coverage reporting.
.gitignore Added ignore rules for .claude/, claude_cache/, and .gemini/ directories.
pyproject.toml Relaxed Python version constraint and added pyspark and pytest-cov as development dependencies.

Sequence Diagram(s)

sequenceDiagram
    participant GitHub
    participant CI Workflow
    participant Runner
    participant Poetry
    participant TestSuite

    GitHub->>CI Workflow: Push or PR to main/master
    CI Workflow->>Runner: Start job for each Python version
    Runner->>Runner: Checkout code
    Runner->>Runner: Set up Python
    Runner->>Poetry: Install Poetry
    Runner->>Poetry: Configure venvs in project
    Runner->>Runner: Cache .venv based on lock hash
    alt Cache miss
        Runner->>Poetry: Install dependencies
    end
    Runner->>Poetry: Install project
    Runner->>TestSuite: Run tests (verbose)
    Runner->>TestSuite: Run tests with coverage
Loading

Estimated code review effort

2 (~15 minutes)

Poem

A bunny hops through lines anew,
With CI pipes and caches, too!
Python bounds now stretch and grow,
Sparkling tests in every flow.
Ignore the clutter, keep things clean—
Our codebase shines, a tidy scene!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@allisonwang-db allisonwang-db changed the title Support Python 3.13 Support Python 3.12 and above versions Jul 22, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
.gitignore (1)

161-167: Directories ignored look correct—consider grouping with related LLM tooling entries

The new .claude/, claude_cache/, and .gemini/ patterns are fine, but they are appended far from the existing “IDE / tooling” block (PyCharm, Rope, etc.). Moving them next to similar IDE- or tool-specific ignores keeps the file logically grouped and easier to scan.

.github/workflows/ci.yml (2)

50-55: Tests run twice—drop the first invocation to save CI minutes

The standalone “Run tests” step (lines 50-52) duplicates the coverage run. Remove it and keep only the coverage-enabled command.

-    - name: Run tests
-      run: poetry run pytest tests/ -v

1-56: Clean up trailing whitespace & ensure newline at EOF

YAML-Lint flags several trailing-space offences and a missing final newline. They don’t break the workflow but failing the linter will block merges if enforced.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ecaa405 and 812e440.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .github/workflows/ci.yml (1 hunks)
  • .gitignore (1 hunks)
  • pyproject.toml (2 hunks)
🪛 YAMLlint (1.37.1)
.github/workflows/ci.yml

[error] 16-16: trailing spaces

(trailing-spaces)


[error] 20-20: trailing spaces

(trailing-spaces)


[error] 25-25: trailing spaces

(trailing-spaces)


[error] 30-30: trailing spaces

(trailing-spaces)


[error] 35-35: trailing spaces

(trailing-spaces)


[error] 42-42: trailing spaces

(trailing-spaces)


[error] 46-46: trailing spaces

(trailing-spaces)


[error] 49-49: trailing spaces

(trailing-spaces)


[error] 52-52: trailing spaces

(trailing-spaces)


[error] 56-56: no new line character at the end of file

(new-line-at-end-of-file)


[error] 56-56: trailing spaces

(trailing-spaces)

🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/ci.yml

[error] 16-16: trailing spaces

(trailing-spaces)


[error] 20-20: trailing spaces

(trailing-spaces)


[error] 25-25: trailing spaces

(trailing-spaces)


[error] 30-30: trailing spaces

(trailing-spaces)


[error] 35-35: trailing spaces

(trailing-spaces)


[error] 42-42: trailing spaces

(trailing-spaces)


[error] 46-46: trailing spaces

(trailing-spaces)


[error] 49-49: trailing spaces

(trailing-spaces)


[error] 52-52: trailing spaces

(trailing-spaces)


[error] 56-56: no new line character at the end of file

(new-line-at-end-of-file)


[error] 56-56: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
pyproject.toml (1)

36-36: Confirmed: pyspark 4.0.0 is available on PyPI
The PyPI metadata shows that version 4.0.0 exists, so locking to this release will not break poetry install.

.github/workflows/ci.yml (2)

15-16: 3.13 may be unsupported by actions/setup-python right now

If GitHub Actions does not yet ship a stable 3.13 image, the job will fail. Consider pinning to 3.13-dev or removing it until a GA release lands, then let the CI itself reveal readiness.


26-35: Poetry install split—but the second call makes the first redundant

Running poetry install --no-root followed by a full poetry install repopulates the venv and defeats caching. Merge them into one step:

-    - name: Install dependencies
-      if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
-      run: poetry install --no-interaction --no-root
-
-    - name: Install project
-      run: poetry install --no-interaction
+    - name: Install dependencies & project
+      if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
+      run: poetry install --no-interaction

Likely an incorrect or invalid review comment.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
.github/workflows/ci.yml (2)

47-52: Duplicate test execution – run once with coverage

The first pytest invocation (lines 47-48) is immediately repeated with coverage (lines 50-52).
Executing the suite twice inflates CI time and may hit external-resource rate limits.

-    - name: Run tests
-      run: poetry run pytest tests/ -v
-
-    - name: Run tests with coverage
-      run: |
-        poetry run pytest tests/ --cov=pyspark_datasources --cov-report=xml --cov-report=term-missing
+    - name: Run tests with coverage
+      run: |
+        poetry run pytest tests/ --cov=pyspark_datasources --cov-report=xml --cov-report=term-missing -v

13-53: Cleanup trailing whitespace & add newline EOF

YAML-lint flags stray spaces on several lines (16, 20, 25, 32, 39, 43, 46, 49) and the file lacks a final newline.
Cosmetic, but keeping the repo lint-clean avoids noisy CI in the future.

-      matrix:
-        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']␠
+      matrix:
+        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
...
-        poetry run pytest tests/ --cov=pyspark_datasources --cov-report=xml --cov-report=term-missing␠
+        poetry run pytest tests/ --cov=pyspark_datasources --cov-report=xml --cov-report=term-missing
+
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 812e440 and 0f7d060.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • .github/workflows/ci.yml (1 hunks)
  • pyproject.toml (2 hunks)
🪛 YAMLlint (1.37.1)
.github/workflows/ci.yml

[error] 16-16: trailing spaces

(trailing-spaces)


[error] 20-20: trailing spaces

(trailing-spaces)


[error] 25-25: trailing spaces

(trailing-spaces)


[error] 32-32: trailing spaces

(trailing-spaces)


[error] 39-39: trailing spaces

(trailing-spaces)


[error] 43-43: trailing spaces

(trailing-spaces)


[error] 46-46: trailing spaces

(trailing-spaces)


[error] 49-49: trailing spaces

(trailing-spaces)


[error] 53-53: no new line character at the end of file

(new-line-at-end-of-file)


[error] 53-53: trailing spaces

(trailing-spaces)

🚧 Files skipped from review as they are similar to previous changes (1)
  • pyproject.toml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/ci.yml

[error] 16-16: trailing spaces

(trailing-spaces)


[error] 20-20: trailing spaces

(trailing-spaces)


[error] 25-25: trailing spaces

(trailing-spaces)


[error] 32-32: trailing spaces

(trailing-spaces)


[error] 39-39: trailing spaces

(trailing-spaces)


[error] 43-43: trailing spaces

(trailing-spaces)


[error] 46-46: trailing spaces

(trailing-spaces)


[error] 49-49: trailing spaces

(trailing-spaces)


[error] 53-53: no new line character at the end of file

(new-line-at-end-of-file)


[error] 53-53: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: test (3.12)
  • GitHub Check: test (3.13)
  • GitHub Check: test (3.10)
  • GitHub Check: test (3.9)
  • GitHub Check: test (3.11)
🔇 Additional comments (1)
.github/workflows/ci.yml (1)

15-15: Verify 3.13 image availability before merging

actions/setup-python only provides release streams that are published on python.org. At the moment Python 3.13 is still pre-release, so the plain string '3.13' will cause the job to fail as soon as the matrix expands to that runner.
Either switch to 3.13-dev (nightly) and pass prerelease: true, or drop it until the final tarball is out.

-        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
+        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13-dev']
+
+    # If you keep the dev stream, instruct setup-python to allow prereleases
+    - name: Set up Python ${{ matrix.python-version }}
+      uses: actions/setup-python@v5
+      with:
+        python-version: ${{ matrix.python-version }}
+        check-latest: true          # picks the freshest dev tag

Comment on lines +40 to +45
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --extras "all"

- name: Install project
run: poetry install --no-interaction --extras "all"
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Redundant poetry install runs – consolidate for speed

poetry install --no-root (line 42) installs all deps except the project itself, and the very next step (line 45) installs everything again including the project.
Running the resolver twice roughly doubles setup time. Merge them into a single call and keep the if guard to leverage the cache:

-      if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
-      run: poetry install --no-interaction --no-root --extras "all"
+      if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
+      run: poetry install --no-interaction --extras "all"

Committable suggestion skipped: line range outside the PR's diff.

🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 43-43: trailing spaces

(trailing-spaces)

🤖 Prompt for AI Agents
In .github/workflows/ci.yml around lines 40 to 45, there are two consecutive
poetry install commands causing redundant dependency resolution and slowing down
the CI. Remove the second poetry install step and modify the first step to run
unconditionally but only if the cache is missed, combining the flags to install
all dependencies including the project in one call. This consolidation will
speed up the setup by avoiding duplicate installs.

@allisonwang-db allisonwang-db merged commit e3ab48c into master Jul 22, 2025
4 of 5 checks passed
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