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

pantsbuild / pants / 19015773527

02 Nov 2025 05:33PM UTC coverage: 17.872% (-62.4%) from 80.3%
19015773527

Pull #22816

github

web-flow
Merge a12d75757 into 6c024e162
Pull Request #22816: Update Pants internal Python to 3.14

4 of 5 new or added lines in 3 files covered. (80.0%)

28452 existing lines in 683 files now uncovered.

9831 of 55007 relevant lines covered (17.87%)

0.18 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

UNCOV
4
from __future__ import annotations
×
5

UNCOV
6
from dataclasses import dataclass
×
7

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

17

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

24

UNCOV
25
class CuePackageTarget(Target):
×
UNCOV
26
    alias = "cue_package"
×
UNCOV
27
    core_fields = (
×
28
        *COMMON_TARGET_FIELDS,
29
        CuePackageSourcesField,
30
    )
UNCOV
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

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

UNCOV
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

© 2025 Coveralls, Inc