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.ci] pre-commit autoupdate #4895

Merged
merged 2 commits into from May 11, 2024
Merged

Conversation

@neutrinoceros
Copy link
Member

I'll push a manual fix for the new linting rule

@neutrinoceros neutrinoceros added infrastructure Related to CI, versioning, websites, organizational issues, etc code style Related to linting tools labels May 6, 2024
neutrinoceros
neutrinoceros previously approved these changes May 6, 2024
pre-commit-ci bot and others added 2 commits May 7, 2024 09:54
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/astral-sh/ruff-pre-commit: v0.4.0 → v0.4.3](astral-sh/ruff-pre-commit@v0.4.0...v0.4.3)
- [github.com/MarcoGorelli/cython-lint: v0.16.0 → v0.16.2](MarcoGorelli/cython-lint@v0.16.0...v0.16.2)
Copy link
Member

@cphyc cphyc left a comment

Choose a reason for hiding this comment

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

This LGTM.

str(type(obj)).split("'")[1], len(obj)
)
f"Expected an array of size (3,), "
f"received {_full_type_name(obj)!r} of length {len(obj)}"
Copy link
Member

Choose a reason for hiding this comment

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

Why _full_type_name(obj)!r rather than just _full_type_name(obj)? Is it just to get the '' for free?

Copy link
Member

Choose a reason for hiding this comment

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

s it just to get the '' for free?

yes

@@ -290,7 +290,7 @@ def transfer_function(self, value):
if not isinstance(value, valid_types):
raise RuntimeError(
"transfer_function not a valid type, "
"received object of type %s" % type(value)
f"received object of type {type(value)}"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
f"received object of type {type(value)}"
f"received object of type {type(value)}."

Copy link
Member

Choose a reason for hiding this comment

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

I'm trying not to change the result at all, so I'd rather skip this

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough, I'm happy with the PR as is.

@cphyc cphyc enabled auto-merge May 8, 2024 07:47
@neutrinoceros neutrinoceros added infrastructure Related to CI, versioning, websites, organizational issues, etc code style Related to linting tools and removed infrastructure Related to CI, versioning, websites, organizational issues, etc code style Related to linting tools labels May 11, 2024
@cphyc cphyc merged commit 1199df6 into main May 11, 2024
13 checks passed
@neutrinoceros neutrinoceros deleted the pre-commit-ci-update-config branch May 11, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code style Related to linting tools infrastructure Related to CI, versioning, websites, organizational issues, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants