Skip to content

Conversation

aarmoa
Copy link
Collaborator

@aarmoa aarmoa commented Jan 20, 2025

PR created to sync dev branch with the latest changes applied in master for version 1.8.2

Summary by CodeRabbit

  • Dependency Updates

    • Updated Python version compatibility to 3.9-3.11
    • Updated aiohttp and protobuf dependency versions to more flexible requirements
    • Added importlib-metadata dependency
  • Configuration Changes

    • Updated gRPC plugin version to v1.65.5
    • Modified a single entry in OFAC list JSON
  • Documentation

    • Updated CHANGELOG.md with version 1.8.2 details

Copy link
Contributor

coderabbitai bot commented Jan 20, 2025

Walkthrough

This pull request introduces several minor updates across different configuration and dependency files. The changes include updating Python version specifications in GitHub Actions workflow, modifying the gRPC plugin version, updating dependency requirements in the project configuration, adding a new dependency, and making a small modification to an OFAC list entry. These updates aim to improve version compatibility, dependency management, and potentially address specific project requirements.

Changes

File Change Summary
.github/workflows/pre-commit.yml Added Python version specification: python-version: '>=3.9 <3.12'
CHANGELOG.md Added version 1.8.2 entry, documenting dependency updates
buf.gen.yaml Updated gRPC plugin version from v1.65.4 to v1.65.5
pyinjective/ofac.json Modified a single hexadecimal address entry
pyproject.toml - Updated aiohttp dependency to ^3.9.4
- Updated protobuf dependency to ^5.26.1
- Added importlib-metadata dependency with <5.0 constraint

Poem

🐰 A Rabbit's Dependency Dance 🔧

Versions bump and plugins twirl,
Python's range begins to unfurl,
Dependencies flex with grace,
In CodeRabbit's version embrace,
One small change, a project's delight! 🚀


🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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. (Beta)
  • @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.

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.

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
pypi/aiohappyeyeballs@2.4.4 🔁 pypi/aiohappyeyeballs@2.4.0 None 0 113 kB bdraco
pypi/aiohttp@3.11.10 🔁 pypi/aiohttp@3.10.5 None 0 15.4 MB Andrew.Svetlov, Dreamsorcerer, bdraco, ...2 more
pypi/aioresponses@0.7.7 🔁 pypi/aioresponses@0.7.6 environment, network 0 138 kB pawel.nuckowski
pypi/async-timeout@5.0.1 None 0 0 B
pypi/bitarray@3.0.0 🔁 pypi/bitarray@2.9.2 None 0 593 kB ilanschnell
pypi/charset-normalizer@3.4.0 🔁 pypi/charset-normalizer@3.3.2 None 0 770 kB Ousret

🚮 Removed packages: pypi/coincurve@18.0.0

View full report↗︎

Copy link
Contributor

@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: 2

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 240d229 and b37a42a.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • .github/workflows/pre-commit.yml (1 hunks)
  • CHANGELOG.md (1 hunks)
  • buf.gen.yaml (1 hunks)
  • pyinjective/ofac.json (1 hunks)
  • pyproject.toml (3 hunks)
✅ Files skipped from review due to trivial changes (3)
  • CHANGELOG.md
  • buf.gen.yaml
  • pyinjective/ofac.json
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: run-tests (3.11, windows-latest)
  • GitHub Check: run-tests (3.11, macos-13)
  • GitHub Check: run-tests (3.10, windows-latest)
  • GitHub Check: run-tests (3.9, windows-latest)
🔇 Additional comments (2)
pyproject.toml (2)

25-25: LGTM: Security-conscious version update for aiohttp.

The caret version requirement for aiohttp with explicit security issue reference is a good practice.


34-34: LGTM: Flexible versioning for protobuf.

The change from exact to caret version allows for compatible updates while maintaining stability.

Comment on lines +15 to +16
with:
python-version: '>=3.9 <3.12'
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix Python version specification syntax for GitHub Actions.

The actions/setup-python action doesn't support version ranges. Use a specific version or a version wildcard instead.

Apply this diff to fix the syntax:

        with:
-          python-version: '>=3.9 <3.12'
+          python-version: '3.9'  # or use '3.x' to get the latest Python 3
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
with:
python-version: '>=3.9 <3.12'
with:
python-version: '3.9' # or use '3.x' to get the latest Python 3

isort = "^5.12.0"
black = "^23.9.1"
python-dotenv = "^1.0.1"
importlib-metadata = "<5.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Remove explicit importlib-metadata dependency

The importlib-metadata package is unnecessary as an explicit dependency because:

  • It's included in Python's standard library since Python 3.8
  • No direct usage found in the codebase
  • If required by development tools, it should be managed as their transitive dependency
🔗 Analysis chain

Verify the necessity and placement of importlib-metadata.

The importlib-metadata package is typically needed for Python versions <3.8, but the project requires Python ^3.9. Additionally, it's placed in dev dependencies which seems unusual.

Let's check its usage in the codebase:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for importlib.metadata or importlib_metadata usage
rg -l "import.*importlib[._]metadata" || echo "No direct imports found"

# Check if it's a dependency of other dev tools
poetry show --tree | grep -A 5 "importlib-metadata"

Length of output: 245


Script:

#!/bin/bash
# Search for build configuration files
echo "=== Build Files ==="
fd -e py -e toml -e cfg -e ini "setup|requirements|tox|pytest" --type f

# Search for alternative import patterns
echo -e "\n=== Import Patterns ==="
rg -l "from importlib[._]metadata import" || echo "No from imports found"
rg -l "importlib.*metadata" || echo "No other importlib.metadata patterns found"

# Look for test configurations that might use it
echo -e "\n=== Test Configurations ==="
fd "pytest.*\.(ini|cfg)" --type f
fd "tox\.(ini|cfg)" --type f

Length of output: 477

@aarmoa aarmoa merged commit 3da362a into dev Jan 20, 2025
12 checks passed
@aarmoa aarmoa deleted the fix/sync_dev_with_1_8_2 branch January 20, 2025 13:55
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