diff --git a/src/python/pants/backend/codegen/protobuf/buf/BUILD b/src/python/pants/backend/codegen/protobuf/buf/BUILD new file mode 100644 index 00000000000..bb2603f74c6 --- /dev/null +++ b/src/python/pants/backend/codegen/protobuf/buf/BUILD @@ -0,0 +1,4 @@ +# Copyright 2026 Pants project contributors (see CONTRIBUTORS.md). +# Licensed under the Apache License, Version 2.0 (see LICENSE). + +python_sources() diff --git a/src/python/pants/backend/codegen/protobuf/buf/__init__.py b/src/python/pants/backend/codegen/protobuf/buf/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/python/pants/backend/codegen/protobuf/lint/buf/skip_field.py b/src/python/pants/backend/codegen/protobuf/buf/skip_field.py similarity index 100% rename from src/python/pants/backend/codegen/protobuf/lint/buf/skip_field.py rename to src/python/pants/backend/codegen/protobuf/buf/skip_field.py diff --git a/src/python/pants/backend/codegen/protobuf/lint/buf/subsystem.py b/src/python/pants/backend/codegen/protobuf/buf/subsystem.py similarity index 100% rename from src/python/pants/backend/codegen/protobuf/lint/buf/subsystem.py rename to src/python/pants/backend/codegen/protobuf/buf/subsystem.py diff --git a/src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py b/src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py index 7b468c79154..8f6f6143e80 100644 --- a/src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py +++ b/src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py @@ -2,8 +2,8 @@ # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass -from pants.backend.codegen.protobuf.lint.buf.skip_field import SkipBufFormatField -from pants.backend.codegen.protobuf.lint.buf.subsystem import BufSubsystem +from pants.backend.codegen.protobuf.buf.skip_field import SkipBufFormatField +from pants.backend.codegen.protobuf.buf.subsystem import BufSubsystem from pants.backend.codegen.protobuf.target_types import ( ProtobufDependenciesField, ProtobufSourceField, diff --git a/src/python/pants/backend/codegen/protobuf/lint/buf/lint_rules.py b/src/python/pants/backend/codegen/protobuf/lint/buf/lint_rules.py index 4e26b8db1b1..1d24cdb2e1a 100644 --- a/src/python/pants/backend/codegen/protobuf/lint/buf/lint_rules.py +++ b/src/python/pants/backend/codegen/protobuf/lint/buf/lint_rules.py @@ -3,8 +3,8 @@ from dataclasses import dataclass from typing import Any -from pants.backend.codegen.protobuf.lint.buf.skip_field import SkipBufLintField -from pants.backend.codegen.protobuf.lint.buf.subsystem import BufSubsystem +from pants.backend.codegen.protobuf.buf.skip_field import SkipBufLintField +from pants.backend.codegen.protobuf.buf.subsystem import BufSubsystem from pants.backend.codegen.protobuf.target_types import ( ProtobufDependenciesField, ProtobufSourceField, diff --git a/src/python/pants/backend/codegen/protobuf/lint/buf/register.py b/src/python/pants/backend/codegen/protobuf/lint/buf/register.py index c9d216ea0af..88f485814d9 100644 --- a/src/python/pants/backend/codegen/protobuf/lint/buf/register.py +++ b/src/python/pants/backend/codegen/protobuf/lint/buf/register.py @@ -1,10 +1,10 @@ # Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -from pants.backend.codegen.protobuf.lint.buf import skip_field +from pants.backend.codegen.protobuf.buf import skip_field +from pants.backend.codegen.protobuf.buf.subsystem import BufSubsystem from pants.backend.codegen.protobuf.lint.buf.format_rules import rules as buf_format_rules from pants.backend.codegen.protobuf.lint.buf.lint_rules import rules as buf_lint_rules -from pants.backend.codegen.protobuf.lint.buf.subsystem import BufSubsystem from pants.core.goals.resolves import ExportableTool from pants.engine.unions import UnionRule