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

pre-commit autoupdate #62

Merged
merged 4 commits into from
Aug 29, 2024
Merged

pre-commit autoupdate #62

merged 4 commits into from
Aug 29, 2024

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Jul 1, 2024

updates:

Summary by CodeRabbit

  • Chores
    • Updated pre-commit hook versions to enhance performance and include improvements from the latest features.
    • Added a dependency constraint for the LLVM package to improve compatibility and functionality.
    • Updated the version requirement for the numba package to ensure usage of a newer version.
    • Removed the installer key from environment configurations to simplify setup.
  • New Features
    • Updated linting configuration with new rules, improving code quality checks.

Copy link

coderabbitai bot commented Jul 1, 2024

Warning

Rate limit exceeded

@fschuch has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 7 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

Files that changed from the base of the PR and between 060daa2 and 3d142f2.

Walkthrough

The recent updates include version upgrades in the .pre-commit-config.yaml file for the ruff-pre-commit and mypy hooks, moving from v0.4.10 to v0.6.2 and from v1.10.0 to v1.11.2, respectively. Additionally, the ruff_defaults.toml configuration file has seen modifications in the linting rules, with several rules removed and new ones added. The xcompact3d_toolbox/io.py and xcompact3d_toolbox/mesh.py files have undergone simplifications in their respective functions. New dependency constraints for LLVM and an updated version for numba have also been introduced in the pyproject.toml file.

Changes

Files Change Summary
.pre-commit-config.yaml Updated ruff-pre-commit from v0.4.10 to v0.6.2 and mypy from v1.10.0 to v1.11.2.
ruff_defaults.toml Removed several linting rules: ASYNC101, ASYNC102, E999, PLR1701, TRIO100, TRIO105, TRIO109, TRIO110, TRIO115, UP027. Added new rules: ASYNC105, ASYNC109, ASYNC110, ASYNC115, ASYNC220, ASYNC221, ASYNC230, ASYNC251, and a duplicate entry for SIM101.
xcompact3d_toolbox/io.py Simplified the is_scalar function by removing unnecessary conditional checks.
xcompact3d_toolbox/mesh.py Simplified the _validate_grid_size function by directly returning the result of the comparison size == 1.
pyproject.toml Introduced a new key constraint-dependencies with the value ["llvm>0.43.0"] to specify a version constraint for the LLVM package. Updated numba version from >=0.50 to >=0.50.1 and removed installer keys from environment sections.

Poem

🐰 In the garden of code, we hop with glee,
New versions of tools bring joy, can’t you see?
With ruff and mypy, oh what a delight,
Bugs and errors, we’ll chase out of sight!
So let’s celebrate with a bounce and a cheer,
For smoother coding days, we hold so dear! 🌼✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 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.

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 58994b9 to 99a230e Compare July 8, 2024 20:39
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 99a230e to 5302108 Compare July 15, 2024 21:10
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from c100f03 to c3a64ae Compare July 29, 2024 21:09
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from c3a64ae to 9690840 Compare August 5, 2024 21:45
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between caf5923 and 9690840.

Files selected for processing (1)
  • .pre-commit-config.yaml (2 hunks)
Files skipped from review due to trivial changes (1)
  • .pre-commit-config.yaml

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 9690840 to c509b9a Compare August 12, 2024 21:08
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9690840 and c509b9a.

Files selected for processing (1)
  • .pre-commit-config.yaml (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .pre-commit-config.yaml

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from c509b9a to 6fb62e6 Compare August 19, 2024 21:15
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c509b9a and 6fb62e6.

Files selected for processing (1)
  • .pre-commit-config.yaml (2 hunks)
Files skipped from review due to trivial changes (1)
  • .pre-commit-config.yaml

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.6.2](astral-sh/ruff-pre-commit@v0.4.10...v0.6.2)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.11.2](pre-commit/mirrors-mypy@v1.10.0...v1.11.2)
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 6fb62e6 to 450a4aa Compare August 26, 2024 21:25
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6fb62e6 and 450a4aa.

Files selected for processing (1)
  • .pre-commit-config.yaml (2 hunks)
Files skipped from review due to trivial changes (1)
  • .pre-commit-config.yaml

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 450a4aa and 367e325.

Files selected for processing (3)
  • ruff_defaults.toml (6 hunks)
  • xcompact3d_toolbox/io.py (1 hunks)
  • xcompact3d_toolbox/mesh.py (1 hunks)
Files skipped from review due to trivial changes (2)
  • xcompact3d_toolbox/io.py
  • xcompact3d_toolbox/mesh.py
Additional comments not posted (1)
ruff_defaults.toml (1)

19-26: Verify the relevance of added linting rules.

Ensure that the newly added rules (ASYNC105, ASYNC109, ASYNC110, ASYNC115, ASYNC220, ASYNC221, ASYNC230, ASYNC251) are relevant to the codebase and do not introduce unnecessary checks.

ruff_defaults.toml Outdated Show resolved Hide resolved
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 367e325 and dc1d08d.

Files selected for processing (1)
  • pyproject.toml (1 hunks)
Additional comments not posted (1)
pyproject.toml (1)

56-57: LGTM!

The addition of the constraint-dependencies key under [tool.uv] enhances the project's dependency management by explicitly defining a version constraint for LLVM.

The code changes are approved.

@fschuch fschuch force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 1d3971e to 3868a8c Compare August 29, 2024 21:50
@fschuch fschuch force-pushed the pre-commit-ci-update-config branch from 3868a8c to 060daa2 Compare August 29, 2024 22:19
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between dc1d08d and 060daa2.

Files selected for processing (1)
  • pyproject.toml (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • pyproject.toml

Copy link

sonarcloud bot commented Aug 29, 2024

@fschuch fschuch merged commit 3498222 into main Aug 29, 2024
22 checks passed
@fschuch fschuch deleted the pre-commit-ci-update-config branch August 29, 2024 22:31
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.

1 participant