• 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/build_files/utils.py
1
# Copyright 2022 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
import os
×
UNCOV
7
from collections.abc import Iterable
×
8

UNCOV
9
from pants.core.goals.fix import FixFilesRequest, Partitions
×
UNCOV
10
from pants.core.goals.multi_tool_goal_helper import SkippableSubsystem
×
UNCOV
11
from pants.engine.internals.build_files import BuildFileOptions
×
UNCOV
12
from pants.engine.internals.native_engine import FilespecMatcher
×
UNCOV
13
from pants.engine.rules import collect_rules, rule
×
UNCOV
14
from pants.util.memo import memoized
×
15

16

UNCOV
17
@memoized
×
UNCOV
18
def _get_build_file_partitioner_rules(cls) -> Iterable:
×
19
    """Returns the BUILD file partitioner rule."""
20

UNCOV
21
    @rule(
×
22
        canonical_name_suffix=cls.__name__,
23
        _param_type_overrides={
24
            "request": cls.PartitionRequest,
25
            "subsystem": cls.tool_subsystem,
26
        },
27
    )
UNCOV
28
    async def partition_build_files(
×
29
        request: FixFilesRequest.PartitionRequest,
30
        subsystem: SkippableSubsystem,
31
        build_file_options: BuildFileOptions,
32
    ) -> Partitions:
33
        if subsystem.skip:
×
34
            return Partitions()
×
35

36
        specified_build_files = FilespecMatcher(
×
37
            includes=[os.path.join("**", p) for p in build_file_options.patterns],
38
            excludes=build_file_options.ignores,
39
        ).matches(request.files)
40

41
        return Partitions.single_partition(specified_build_files)
×
42

UNCOV
43
    return collect_rules(locals())
×
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