Skip to content

Move Buf subsystem out of the lint subpackage#23382

Merged
cburroughs merged 1 commit into
pantsbuild:mainfrom
mfairley:move-buf-subsystem
May 29, 2026
Merged

Move Buf subsystem out of the lint subpackage#23382
cburroughs merged 1 commit into
pantsbuild:mainfrom
mfairley:move-buf-subsystem

Conversation

@mfairley

Copy link
Copy Markdown
Contributor

Summary

Hoists subsystem.py and skip_field.py from src/python/pants/backend/codegen/protobuf/lint/buf/ up to src/python/pants/backend/codegen/protobuf/buf/ so non-lint consumers can depend on the BufSubsystem without reaching into the lint package.

Pure file relocation — git mv of two files plus import-path updates in the three files that referenced them. No behavior change.

This is split out from #23343 (which adds Buf as an alternate Python protobuf code generator) to make that PR easier to review by separating the mechanical move from the substantive new code. Once this lands, #23343 will be rebased onto it and reduce to just the codegen feature.

Test plan

  • ./pants test src/python/pants/backend/codegen/protobuf/lint/buf:: still passes (lint/format rules import from new path).
  • CI passes.

Hoists `subsystem.py` and `skip_field.py` from
`backend/codegen/protobuf/lint/buf/` up to
`backend/codegen/protobuf/buf/` so non-lint consumers (e.g. an upcoming
buf-based code generator) can depend on the Buf subsystem without
reaching into the lint package. Pure file relocation plus import path
updates; no behavior change.
@cburroughs cburroughs added the release-notes:not-required [CI] PR doesn't require mention in release notes label May 29, 2026

@cburroughs cburroughs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for breaking this out! (I think to be pedantic this should get a brief mention in the plugin api section of the release notes but I think it is fine -- better even! -- to fold that into the upcoming changes.)

@cburroughs
cburroughs merged commit c8127c1 into pantsbuild:main May 29, 2026
48 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:not-required [CI] PR doesn't require mention in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants