• 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/jvm/shading/jarjar.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 enum import Enum, unique
×
5

UNCOV
6
from pants.core.goals.resolves import ExportableTool
×
UNCOV
7
from pants.engine.rules import collect_rules
×
UNCOV
8
from pants.engine.unions import UnionRule
×
UNCOV
9
from pants.jvm.resolve.jvm_tool import JvmToolBase
×
UNCOV
10
from pants.option.option_types import BoolOption, EnumOption
×
11

12

UNCOV
13
@unique
×
UNCOV
14
class MisplacedClassStrategy(Enum):
×
UNCOV
15
    FATAL = "fatal"
×
UNCOV
16
    SKIP = "skip"
×
UNCOV
17
    OMIT = "omit"
×
UNCOV
18
    MOVE = "move"
×
19

20

UNCOV
21
class JarJar(JvmToolBase):
×
UNCOV
22
    options_scope = "jarjar"
×
UNCOV
23
    help = "The Jar Jar Abrams tool (https://github.com/eed3si9n/jarjar-abrams)"
×
24

UNCOV
25
    default_version = "1.8.1"
×
UNCOV
26
    default_artifacts = ("com.eed3si9n.jarjar:jarjar-assembly:{version}",)
×
UNCOV
27
    default_lockfile_resource = (
×
28
        "pants.jvm.shading",
29
        "jarjar.default.lockfile.txt",
30
    )
31

UNCOV
32
    skip_manifest = BoolOption(default=False, help="Skip the processing of the JAR manifest.")
×
UNCOV
33
    misplaced_class_strategy = EnumOption(
×
34
        default=None,
35
        enum_type=MisplacedClassStrategy,
36
        help="The strategy to use when processing class files that are in the wrong package.",
37
    )
38

39

UNCOV
40
def rules():
×
UNCOV
41
    return [
×
42
        *collect_rules(),
43
        UnionRule(ExportableTool, JarJar),
44
    ]
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