-
Notifications
You must be signed in to change notification settings - Fork 8
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.ci] pre-commit autoupdate #216
Conversation
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the WalkthroughThe updates involve upgrading the versions of the Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
👍
bf39b7e
to
accd7fe
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (1)
- .pre-commit-config.yaml (1 hunks)
Additional comments not posted (2)
.pre-commit-config.yaml (2)
30-30
: Verify compatibility with the updatedblack
version.The version of
black
has been updated from24.4.2
to24.8.0
. Ensure that the new version is compatible with the existing codebase and does not introduce any formatting changes that might conflict with the current code style.
36-36
: Verify compatibility with the updatedruff-pre-commit
version.The version of
ruff-pre-commit
has been updated fromv0.5.4
tov0.5.6
. Ensure that the new version is compatible with the existing codebase and does not introduce any linting errors that might conflict with the current code style.
accd7fe
to
edfc5e6
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (1)
- .pre-commit-config.yaml (1 hunks)
Additional comments not posted (2)
.pre-commit-config.yaml (2)
30-30
: Black version update is correct.The version of
black
has been updated to24.8.0
, which matches the PR objectives.
36-36
: Ruff version update is correct.The version of
ruff-pre-commit
has been updated tov0.5.7
, which matches the PR objectives.
edfc5e6
to
1d34c5a
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (2)
- .pre-commit-config.yaml (1 hunks)
- examples/ipynb/notebook_showcase_k3d.ipynb (2 hunks)
Additional comments not posted (4)
.pre-commit-config.yaml (2)
30-30
: Version update forblack
.The
black
formatter has been updated to version24.8.0
. Ensure compatibility with your project's code style and other dependencies.
36-36
: Version update forruff-pre-commit
.The
ruff-pre-commit
package has been updated to versionv0.6.1
. Verify that this version aligns with your project's linting requirements.examples/ipynb/notebook_showcase_k3d.ipynb (2)
20-21
: Reordered import forgustaf
.The import statement for
gustaf
has been moved to improve readability by grouping related imports together. This is a good practice for maintaining clear and organized code.
160-162
: Improved readability forempty_torus
creation.The
empty_torus
creation has been reformatted into a multi-line expression, enhancing readability and maintainability. Ensure that this change does not affect the intended functionality.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (2)
- examples/export_meshio.py (1 hunks)
- examples/mixd_to_nutils.py (1 hunks)
Additional context used
Learnings (1)
examples/export_meshio.py (1)
Learnt from: clemens-fricke PR: tataratat/gustaf#214 File: examples/export_meshio.py:52-52 Timestamp: 2024-07-03T08:27:40.999Z Learning: The `export` function in the `gus.io.meshio` module accepts arguments in the order `(export_path, mesh, submeshes=None, **kwargs)`.
Additional comments not posted (2)
examples/mixd_to_nutils.py (1)
11-12
: LGTM! Verify function signature changes.The changes in argument order for the
export
functions align with the updated function signatures.Ensure that the function definitions in
gus.io.mixd
andgus.io.nutils
support this new order.Run the following script to verify the function signature changes:
Verification successful
Verified: Correct argument order in
export
function calls.The
export
function calls inexamples/mixd_to_nutils.py
correctly use the argument order as defined ingustaf/io/mixd.py
andgustaf/io/nutils.py
. The first argument isfname
, and the second ismesh
.
gustaf/io/mixd.py
:def export(fname, mesh)
gustaf/io/nutils.py
:def export(fname, mesh)
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the function signatures for `export` in `gus.io.mixd` and `gus.io.nutils`. # Test: Search for the function definitions. Expect: New argument order. ast-grep --lang python --pattern $'def export(filepath, mesh):'Length of output: 64
Script:
#!/bin/bash # Description: Search for `export` function definitions in the entire codebase to verify their argument order. # Search for `export` function definitions and include context lines for better understanding. rg 'def export' -A 2 --glob '*.py'Length of output: 815
examples/export_meshio.py (1)
47-57
: LGTM! Verify function signature forgus.io.meshio.export
.The changes in argument order for the
export
function align with the expected parameter order.Ensure that the function definition in
gus.io.meshio
supports this new order.Run the following script to verify the function signature:
Verification successful
Function Signature Verified: Argument Order is Correct
The
export
function ingustaf/io/meshio.py
matches the expected signature, confirming that the argument order inexamples/export_meshio.py
is correct.
gustaf/io/meshio.py
:def export(fname, mesh, submeshes=None, **kwargs):
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the function signature for `export` in `gus.io.meshio`. # Test: Search for the function definition. Expect: New argument order. ast-grep --lang python --pattern $'def export(export_path, mesh, submeshes=None, **kwargs):'Length of output: 93
Script:
#!/bin/bash # Description: Search for any function named `export` in Python files across the codebase. # Test: Search for the function definition. Expect: Locate the function and verify its signature. ast-grep --lang python --pattern $'def export($$$):'Length of output: 53
Script:
#!/bin/bash # Description: Search for occurrences of `export` in Python files across the codebase. # Test: Search for any reference to `export`. Expect: Find usage or definition clues. rg 'export' --type py -A 3Length of output: 4613
I noticed that we had again not merged the fix for the export path. I have added the fix again for the examples. I am not sure where it got lost again. |
Oh, I think it is still in #214 I will finalize all and merge soon |
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.
Everything looks good; changes are needed due to better linting in the ipynb
files. Also, there is an old issue where the variable order was not correctly adapted after the export functions were changed.
66894a7
to
4ad3dbf
Compare
aa552aa
to
45a39f4
Compare
e1d5fb4
to
84b431d
Compare
9167a24
to
f1156a3
Compare
64e23e9
to
3aaa9e5
Compare
72f8296
to
383d24c
Compare
updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0) - [github.com/psf/black: 24.4.2 → 24.10.0](psf/black@24.4.2...24.10.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.4 → v0.7.1](astral-sh/ruff-pre-commit@v0.5.4...v0.7.1)
28ed317
to
b24e786
Compare
I will merge this as soon as the checks have run through. We pushed this from one ruff update to the next and had to regularly redo the function variable order change in the examples. |
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.
Looks good.
updates:
Summary by CodeRabbit
New Features
Improvements