Skip to content

Fix pre-existing trailing whitespace in Modules/_cffi_backend/#724

Open
esaurez wants to merge 1 commit into
nanvix/v3.12.3from
fix/cffi-backend-trailing-whitespace
Open

Fix pre-existing trailing whitespace in Modules/_cffi_backend/#724
esaurez wants to merge 1 commit into
nanvix/v3.12.3from
fix/cffi-backend-trailing-whitespace

Conversation

@esaurez

@esaurez esaurez commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Strips trailing whitespace from 5 third-party _cffi_backend source files that have been failing the upstream cpython lint workflow's trim trailing whitespace pre-commit hook ever since they were added in commit 68d3969 ("feat(nanvix): add _cffi_backend as built-in module").

Pure mechanical cleanup: 5 files / +8/-8, no semantic edits.

Why

The pre-commit hook in .pre-commit-config.yaml applies the trailing-whitespace rule to every c / inc / python / rst file in the repo. The cffi 1.17.1 sources vendored in 68d3969 predate the hook being enforced and were never cleaned up. As a result, every PR fails the upstream Lint workflow regardless of its actual content, which makes the green-check baseline meaningless for anything new.

This PR establishes a clean baseline so the Lint workflow becomes a real signal again on follow-up work.

What changed

5 files, all in Modules/_cffi_backend/:

  • _cffi_backend.c — 6 lines
  • cffi1_module.c — 1 line
  • lib_obj.c — 1 line
  • misc_thread_common.h — 2 lines
  • misc_win32.h — 1 line

Verified by running pre-commit run --all-files locally; after this change the trim trailing whitespace hook passes and the rest of the workflow is unaffected.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Strips trailing whitespace from 5 third-party cffi-backend source files
that have been failing the repo's pre-commit `trim trailing whitespace`
hook for some time.  The hook applies to all .c / .h files in the
repository, but the cffi-backend sources predate the hook being enabled
and were never fixed.  Without this cleanup, every Nanvix-related PR
fails the upstream Lint workflow regardless of its actual content.

Pure mechanical change: 5 files / +8/-8, only trailing whitespace
removed (no semantic edits).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 12, 2026 23:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


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

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