• 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/helm/check/kubeconform/subsystem.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 enum import Enum, unique
×
7

UNCOV
8
from pants.core.util_rules.external_tool import TemplatedExternalTool
×
UNCOV
9
from pants.engine.platform import Platform
×
UNCOV
10
from pants.option.option_types import BoolOption, EnumOption, IntOption, SkipOption, StrListOption
×
11

12

UNCOV
13
@unique
×
UNCOV
14
class KubeconformOutput(Enum):
×
15
    """The report format used for the unit tests."""
16

UNCOV
17
    TEXT = "text"
×
UNCOV
18
    JSON = "json"
×
UNCOV
19
    TAP = "tap"
×
UNCOV
20
    JUNIT = "junit"
×
21

22

UNCOV
23
class KubeconformSubsystem(TemplatedExternalTool):
×
UNCOV
24
    options_scope = "kubeconform"
×
UNCOV
25
    name = "kubeconform"
×
UNCOV
26
    help = "Kubeconform tool (https://github.com/yannh/kubeconform)"
×
27

UNCOV
28
    default_version = "0.7.0"
×
UNCOV
29
    default_url_template = "https://github.com/yannh/kubeconform/releases/download/v{version}/kubeconform-{platform}.tar.gz"
×
UNCOV
30
    default_known_versions = [
×
31
        "0.7.0|macos_x86_64|c6771cc894d82e1b12f35ee797dcda1f7da6a3787aa30902a15c264056dd40d4|7420234",
32
        "0.7.0|macos_arm64|b5d32b2cb77f9c781c976b20a85e2d0bc8f9184d5d1cfe665a2f31a19f99eeb9|7031569",
33
        "0.7.0|linux_x86_64|c31518ddd122663b3f3aa874cfe8178cb0988de944f29c74a0b9260920d115d3|7491807",
34
        "0.7.0|linux_arm64|cc907ccf9e3c34523f0f32b69745265e0a6908ca85b92f41931d4537860eb83c|6982794",
35
        "0.6.7|macos_x86_64|3b5324ac4fd38ac60a49823b4051ff42ff7eb70144f1e9741fed1d14bc4fdb4e|6225509",
36
        "0.6.7|macos_arm64|cbb47d938a8d18eb5f79cb33663b2cecdee0c8ac0bf562ebcfca903df5f0802f|5907133",
37
        "0.6.7|linux_x86_64|95f14e87aa28c09d5941f11bd024c1d02fdc0303ccaa23f61cef67bc92619d73|6264184",
38
        "0.6.7|linux_arm64|dc82f79bb03c5479b1ae5fd4af221e4b5a3111f62bf01a2795d9c5c20fa96644|5841917",
39
        "0.6.2|macos_x86_64|88e53c2562482ed5ab7434188ca5ba03d3482088ac52d53da7499d579923f2e8|5656173",
40
        "0.6.2|macos_arm64|881e3fe2ecdb1cc41bce80013113f24da80e1bec593876ffe88668333ae69b51|5423607",
41
        "0.6.2|linux_x86_64|d2a10db6b78d56de8fe9375b9c351bc573aa218a74da04d114767b505a675090|5739066",
42
        "0.6.2|linux_arm64|41c15ecbb120042bee0aca8a616e479b555084d5d14bc2e095ed96081c1e9404|5335394",
43
    ]
UNCOV
44
    default_url_platform_mapping = {
×
45
        "linux_arm64": "linux-arm64",
46
        "linux_x86_64": "linux-amd64",
47
        "macos_arm64": "darwin-arm64",
48
        "macos_x86_64": "darwin-amd64",
49
    }
50

UNCOV
51
    skip = SkipOption("check")
×
52

UNCOV
53
    concurrency = IntOption(
×
54
        default=None,
55
        help="Number of workers used by Kubeconform to validate resources.",
56
        advanced=True,
57
    )
UNCOV
58
    schema_locations = StrListOption(
×
59
        default=["default"],
60
        help="List of schema locations to use to validate the resources.",
61
        advanced=True,
62
    )
UNCOV
63
    output_type = EnumOption(
×
64
        default=KubeconformOutput.TEXT, help="Output type used by `kubeconform`."
65
    )
UNCOV
66
    summary = BoolOption(default=False, help="Set to true to only output check summary.")
×
UNCOV
67
    verbose = BoolOption(default=False, help="Set to true to increase output verbosity.")
×
68

UNCOV
69
    def generate_exe(self, _: Platform) -> str:
×
70
        return "./kubeconform"
×
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