• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 20328535594

18 Dec 2025 06:46AM UTC coverage: 57.969% (-22.3%) from 80.295%
20328535594

Pull #22954

github

web-flow
Merge ccc9c5409 into 407284c67
Pull Request #22954: free up disk space in runner image

39083 of 67421 relevant lines covered (57.97%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/cue/target_types.py
1
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from __future__ import annotations
×
5

6
from dataclasses import dataclass
×
7

8
from pants.engine.target import (
×
9
    COMMON_TARGET_FIELDS,
10
    FieldSet,
11
    MultipleSourcesField,
12
    Target,
13
    generate_multiple_sources_field_help_message,
14
)
15
from pants.util.strutil import help_text
×
16

17

18
class CuePackageSourcesField(MultipleSourcesField):
×
19
    default = ("*.cue",)
×
20
    help = generate_multiple_sources_field_help_message(
×
21
        "Example: `sources=['schema.cue', 'lib/**/*.cue']`"
22
    )
23

24

25
class CuePackageTarget(Target):
×
26
    alias = "cue_package"
×
27
    core_fields = (
×
28
        *COMMON_TARGET_FIELDS,
29
        CuePackageSourcesField,
30
    )
31
    help = help_text(
×
32
        """
33
        The `cue_package` target defines a CUE package. Within a module, CUE organizes files grouped
34
        by package. A package can be defined within the module or externally. Definitions and
35
        constraints can be split across files within a package, and even organized across
36
        directories.
37

38
        CUE docs: https://cuelang.org/docs/concepts/packages/
39
        """
40
    )
41

42

43
@dataclass(frozen=True)
×
44
class CueFieldSet(FieldSet):
×
45
    required_fields = (CuePackageSourcesField,)
×
46

47
    sources: CuePackageSourcesField
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc