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

pantsbuild / pants / 21552830208

31 Jan 2026 11:40PM UTC coverage: 80.277% (-0.05%) from 80.324%
21552830208

Pull #23062

github

web-flow
Merge 808a9786c into 2c4dcf9cf
Pull Request #23062: Remove support for Get

18 of 25 new or added lines in 4 files covered. (72.0%)

17119 existing lines in 541 files now uncovered.

78278 of 97510 relevant lines covered (80.28%)

3.36 hits per line

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

87.5
/src/python/pants/backend/cue/goals/lint.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
1✔
5

UNCOV
6
from collections.abc import Iterable
1✔
UNCOV
7
from typing import Any
1✔
8

UNCOV
9
from pants.backend.cue import subsystem
1✔
UNCOV
10
from pants.backend.cue.rules import _run_cue
1✔
UNCOV
11
from pants.backend.cue.subsystem import Cue
1✔
UNCOV
12
from pants.backend.cue.target_types import CueFieldSet
1✔
UNCOV
13
from pants.core.goals.lint import LintResult, LintTargetsRequest
1✔
UNCOV
14
from pants.core.util_rules.partitions import PartitionerType
1✔
UNCOV
15
from pants.core.util_rules.source_files import SourceFilesRequest, determine_source_files
1✔
UNCOV
16
from pants.engine.platform import Platform
1✔
UNCOV
17
from pants.engine.rules import Rule, collect_rules, rule
1✔
UNCOV
18
from pants.util.logging import LogLevel
1✔
19

20

UNCOV
21
class CueLintRequest(LintTargetsRequest):
1✔
UNCOV
22
    field_set_type = CueFieldSet
1✔
UNCOV
23
    tool_subsystem = Cue  # type: ignore[assignment]
1✔
UNCOV
24
    partitioner_type = PartitionerType.DEFAULT_SINGLE_PARTITION
1✔
25

26

UNCOV
27
@rule(desc="Lint with cue", level=LogLevel.DEBUG)
1✔
UNCOV
28
async def run_cue_vet(
1✔
29
    request: CueLintRequest.Batch[CueFieldSet, Any],
30
    cue: Cue,
31
    platform: Platform,
32
) -> LintResult:
33
    sources = await determine_source_files(
×
34
        SourceFilesRequest(sources_fields=[field_set.sources for field_set in request.elements])
35
    )
36
    process_result = await _run_cue("vet", cue=cue, snapshot=sources.snapshot, platform=platform)
×
37
    return LintResult.create(request, process_result)
×
38

39

UNCOV
40
def rules() -> Iterable[Rule]:
1✔
UNCOV
41
    return (
1✔
42
        *collect_rules(),
43
        *CueLintRequest.rules(),
44
        *subsystem.rules(),
45
    )
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