Skip to content

Minimum lint fixes and suppressions to pass CI - #254

Open
roryyorke wants to merge 5 commits into
python-control:masterfrom
roryyorke:lint-fixes-small
Open

roryyorke wants to merge 5 commits into
python-control:masterfrom
roryyorke:lint-fixes-small

Conversation

@roryyorke

Copy link
Copy Markdown
Collaborator

See discussion at gh-253.

Changes

  • fix __all__ bug
  • fix latent mutable default argument bug in unit test code
  • suppress ruff check warnings
  • address scikit-build-core build-time warning
  • add notes and warnings for dev-tools/inplace-editable-build.bash

@roryyorke roryyorke mentioned this pull request Oct 4, 2026
@roryyorke
roryyorke requested a review from bnavigator October 4, 2026 13:14

@slivingston slivingston 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.

I noticed a small misprint. Else, this is good to merge.

Some of these ruff warnings involve changes that are safe, in particular unused unpacked variables (RUF059). Nonetheless, I agree with waiting for more test coverage before applying the suggested changes.

Comment thread BUILD.rst
----------------------------

When doing development one builds over and over; in that case it's faster to do a non-isolated editable build. Run or adapt developer script `inplace-editable-build.bash`_ for that.
When doing development one builds over and over; in that case it's faster to do a non-isolated editable build. Run or adapt developer script `inplace-editable-build.bash`_ for that. CMake variables can be set to configure the build; for example, in the command below, ``BLA_VENDOR`` is set to to tell CMake to use the Netlib BLAS/LAPACK libraries. This example is not merely illustrative: on Debian 13 *not* specifying ``BLA_VENDOR`` can cause test failures.

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.

Suggested change
When doing development one builds over and over; in that case it's faster to do a non-isolated editable build. Run or adapt developer script `inplace-editable-build.bash`_ for that. CMake variables can be set to configure the build; for example, in the command below, ``BLA_VENDOR`` is set to to tell CMake to use the Netlib BLAS/LAPACK libraries. This example is not merely illustrative: on Debian 13 *not* specifying ``BLA_VENDOR`` can cause test failures.
When doing development one builds over and over; in that case it's faster to do a non-isolated editable build. Run or adapt developer script `inplace-editable-build.bash`_ for that. CMake variables can be set to configure the build; for example, in the command below, ``BLA_VENDOR`` is set to tell CMake to use the Netlib BLAS/LAPACK libraries. This example is not merely illustrative: on Debian 13 *not* specifying ``BLA_VENDOR`` can cause test failures.

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.

2 participants