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

pantsbuild / pants / 21042790249

15 Jan 2026 06:57PM UTC coverage: 43.263% (-35.4%) from 78.666%
21042790249

Pull #23021

github

web-flow
Merge cc03ad8de into d250c80fe
Pull Request #23021: WIP gh workflow scie pex

23 of 33 new or added lines in 3 files covered. (69.7%)

16147 existing lines in 521 files now uncovered.

26164 of 60477 relevant lines covered (43.26%)

0.87 hits per line

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

0.0
/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
×
5

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

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

20

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

26

UNCOV
27
@rule(desc="Lint with cue", level=LogLevel.DEBUG)
×
UNCOV
28
async def run_cue_vet(
×
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]:
×
UNCOV
41
    return (
×
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