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

pantsbuild / pants / 26380816428

25 May 2026 02:57AM UTC coverage: 52.312% (-40.6%) from 92.89%
26380816428

Pull #23368

github

web-flow
Merge 7410b48e1 into 7b1060c81
Pull Request #23368: Run Linux ARM CI on Depot runners (Cherry-pick of #23363)

31807 of 60802 relevant lines covered (52.31%)

1.05 hits per line

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

0.0
/src/python/pants/ng/passthru.py
1
# Copyright 2026 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from dataclasses import dataclass
×
5

6
from pants.engine.internals.native_engine import PyNgInvocation
×
7
from pants.engine.internals.session import SessionValues
×
8
from pants.engine.rules import Rule, _uncacheable_rule, collect_rules, implicitly, rule
×
9

10

11
@dataclass(frozen=True)
×
12
class PassthruArgs:
×
13
    # Args passed to Pants after `--` and intended to be passed through to an underlying tool.
14
    args: tuple[str, ...] | None
15

16

17
@_uncacheable_rule
×
18
async def get_ng_invocation(session_values: SessionValues) -> PyNgInvocation:
×
19
    return session_values[PyNgInvocation]
×
20

21

22
@rule
×
23
async def get_passthru_args() -> PassthruArgs:
×
24
    invocation = await get_ng_invocation(**implicitly())
×
25
    return PassthruArgs(invocation.passthru())
×
26

27

28
def rules() -> tuple[Rule, ...]:
×
29
    return (*collect_rules(),)
×
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