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

pantsbuild / pants / 20328535594

18 Dec 2025 06:46AM UTC coverage: 57.969% (-22.3%) from 80.295%
20328535594

Pull #22954

github

web-flow
Merge ccc9c5409 into 407284c67
Pull Request #22954: free up disk space in runner image

39083 of 67421 relevant lines covered (57.97%)

0.91 hits per line

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

0.0
/src/python/pants/backend/python/lint/add_trailing_comma/subsystem.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from __future__ import annotations
×
5

6
from pants.backend.python.subsystems.python_tool_base import PythonToolBase
×
7
from pants.backend.python.target_types import ConsoleScript
×
8
from pants.core.goals.resolves import ExportableTool
×
9
from pants.engine.rules import collect_rules
×
10
from pants.engine.unions import UnionRule
×
11
from pants.option.option_types import ArgsListOption, SkipOption
×
12

13

14
class AddTrailingComma(PythonToolBase):
×
15
    options_scope = "add-trailing-comma"
×
16
    name = "add-trailing-comma"
×
17
    help_short = "The add-trailing-comma Python code formatter (https://github.com/asottile/add-trailing-comma)."
×
18

19
    default_main = ConsoleScript("add-trailing-comma")
×
20
    default_requirements = ["add-trailing-comma>=2.2.3,<3"]
×
21

22
    register_interpreter_constraints = True
×
23

24
    default_lockfile_resource = (
×
25
        "pants.backend.python.lint.add_trailing_comma",
26
        "add_trailing_comma.lock",
27
    )
28

29
    skip = SkipOption("fmt", "lint")
×
30
    args = ArgsListOption(example="--py36-plus")
×
31

32

33
def rules():
×
34
    return [
×
35
        *collect_rules(),
36
        UnionRule(ExportableTool, AddTrailingComma),
37
    ]
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