• 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/subsystem.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 pants.core.goals.resolves import ExportableTool
×
UNCOV
7
from pants.core.util_rules.external_tool import TemplatedExternalTool
×
UNCOV
8
from pants.engine.platform import Platform
×
UNCOV
9
from pants.engine.unions import UnionRule
×
UNCOV
10
from pants.option.option_types import ArgsListOption, SkipOption
×
UNCOV
11
from pants.util.strutil import help_text
×
12

13

UNCOV
14
class Cue(TemplatedExternalTool):
×
UNCOV
15
    options_scope = "cue"
×
UNCOV
16
    name = "CUE"
×
UNCOV
17
    help = help_text(
×
18
        """
19
        CUE is an open-source data validation language and inference engine with its roots in logic
20
        programming. Although the language is not a general-purpose programming language, it has
21
        many applications, such as data validation, data templating, configuration, querying, code
22
        generation and even scripting. The inference engine can be used to validate data in code or
23
        to include it as part of a code generation pipeline.
24

25
        Homepage: https://cuelang.org/
26
        """
27
    )
UNCOV
28
    default_version = "v0.4.3"
×
UNCOV
29
    default_known_versions = [
×
30
        "v0.4.3|macos_x86_64|1161254cf38b928b87a7ac1552dc2e12e6c5da298f9ce370d80e5518ddb6513d|6240316",
31
        "v0.4.3|macos_arm64 |3d84b85a7288f94301a4726dcf95b2d92c8ff796c4d45c4733fbdcc04ceaf21d|5996085",
32
        "v0.4.3|linux_x86_64|5e7ecb614b5926acfc36eb1258800391ab7c6e6e026fa7cacbfe92006bac895c|6037013",
33
        "v0.4.3|linux_arm64 |a8c3f4140d18c324cc69f5de4df0566e529e1636cff340095a42475799bf3fed|5548404",
34
    ]
UNCOV
35
    default_url_template = "https://github.com/cue-lang/cue/releases/download/{version}/cue_{version}_{platform}.tar.gz"
×
UNCOV
36
    default_url_platform_mapping = {
×
37
        "macos_arm64": "darwin_arm64",
38
        "macos_x86_64": "darwin_amd64",
39
        "linux_arm64": "linux_arm64",
40
        "linux_x86_64": "linux_amd64",
41
    }
UNCOV
42
    skip = SkipOption("fmt", "fix", "lint")
×
UNCOV
43
    args = ArgsListOption(example="--all-errors")
×
44

UNCOV
45
    def generate_exe(self, plat: Platform) -> str:
×
46
        return "cue"
×
47

48

UNCOV
49
def rules():
×
UNCOV
50
    return (UnionRule(ExportableTool, Cue),)
×
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