Skip to content

Fix ruff - #150

Open
f-brinkmann wants to merge 1 commit into
hot/fix_character_encodingfrom
fix/ruff
Open

f-brinkmann wants to merge 1 commit into
hot/fix_character_encodingfrom
fix/ruff

Conversation

@f-brinkmann

Copy link
Copy Markdown
Member

Which issue(s) are closed by this pull request?

Closes none, requires #149

Changes proposed in this pull request:

Fixes ruff that failed due to a ruff update. I tend to not add a histroy enrtry for this.

Comment thread sofar/sofa.py
# dimensions than defined and inspect should still work)
shape_verbose = "("
for s, d in zip(shape, dimension):
for s, d in zip(shape, dimension, strict=False):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why False here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

See comment righ above :) It's a user friendly way to make inspect work on sofa files that may have become invalid after an edit. This will be raised as an error in verify with an understandable error message.

@ahms5 ahms5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks, just a smaller comment

Comment thread pyproject.toml
# allow `zip()` without passing the `strict` parameter for git submodule that
# is maintained in https://github.com/pyfar/sofa_conventions
"sofar/sofa_conventions/*" = [
"B905",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe it is better to add this to ruff exclude in line 78, as this is not in our hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Require review

Development

Successfully merging this pull request may close these issues.

3 participants