Skip to content

Ignore irrelevant instances of RUF069#262

Merged
inducer merged 1 commit intomainfrom
ruf-069
Feb 15, 2026
Merged

Ignore irrelevant instances of RUF069#262
inducer merged 1 commit intomainfrom
ruf-069

Conversation

@inducer
Copy link
Owner

@inducer inducer commented Feb 15, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 15, 2026 14:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds # noqa: RUF069 comments to suppress false positive warnings from Ruff's RUF069 linting rule, which flags explicit type conversions in comparisons as potentially redundant. The suppressions are applied to cases where the explicit conversions are semantically meaningful and necessary.

Changes:

  • Added noqa comments to suppress RUF069 warnings for symbolic expression comparisons in tests
  • Added noqa comments for physical constant validations in kernel classes
  • Added noqa comment for precision-loss checking in complex number conversion

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
sumpy/test/test_kernels.py Suppressed RUF069 for two assertions that convert symbolic expressions to floats before comparing to 0.0
sumpy/kernel.py Suppressed RUF069 for Poisson ratio comparisons with 0.5 in ElasticityKernel and StokesletKernel
sumpy/codegen.py Suppressed RUF069 for complex64 precision check that compares converted value back to original

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@inducer inducer merged commit 0fd7598 into main Feb 15, 2026
15 checks passed
@inducer inducer deleted the ruf-069 branch February 15, 2026 19:16
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