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

pantsbuild / pants / 18538208066

15 Oct 2025 06:04PM UTC coverage: 53.298% (-27.0%) from 80.267%
18538208066

Pull #22750

github

web-flow
Merge 1f9a15135 into 99919310e
Pull Request #22750: Experiment with `--changed-since` and `--transitive`

1 of 1 new or added line in 1 file covered. (100.0%)

14164 existing lines in 472 files now uncovered.

35776 of 67125 relevant lines covered (53.3%)

2.31 hits per line

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

0.0
/src/python/pants/backend/cue/goals/fix.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
×
7

UNCOV
8
from pants.backend.cue import subsystem
×
UNCOV
9
from pants.backend.cue.rules import _run_cue
×
UNCOV
10
from pants.backend.cue.subsystem import Cue
×
UNCOV
11
from pants.backend.cue.target_types import CueFieldSet
×
UNCOV
12
from pants.core.goals.fmt import FmtResult, FmtTargetsRequest
×
UNCOV
13
from pants.core.util_rules.partitions import PartitionerType
×
UNCOV
14
from pants.engine.platform import Platform
×
UNCOV
15
from pants.engine.rules import Rule, collect_rules, rule
×
UNCOV
16
from pants.util.logging import LogLevel
×
17

18

UNCOV
19
class CueFmtRequest(FmtTargetsRequest):
×
UNCOV
20
    field_set_type = CueFieldSet
×
UNCOV
21
    tool_subsystem = Cue
×
UNCOV
22
    partitioner_type = PartitionerType.DEFAULT_SINGLE_PARTITION
×
23

24

UNCOV
25
@rule(desc="Format with cue", level=LogLevel.DEBUG)
×
UNCOV
26
async def run_cue_fmt(request: CueFmtRequest.Batch, cue: Cue, platform: Platform) -> FmtResult:
×
27
    process_result = await _run_cue(
×
28
        "fmt",
29
        cue=cue,
30
        snapshot=request.snapshot,
31
        platform=platform,
32
        output_files=request.snapshot.files,
33
    )
34
    return await FmtResult.create(request, process_result)
×
35

36

UNCOV
37
def rules() -> Iterable[Rule]:
×
UNCOV
38
    return (
×
39
        *collect_rules(),
40
        *CueFmtRequest.rules(),
41
        *subsystem.rules(),
42
    )
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