• 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/docformatter/subsystem.py
1
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4

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

12

13
class Docformatter(PythonToolBase):
×
14
    options_scope = "docformatter"
×
15
    name = "docformatter"
×
16
    help_short = "The Python docformatter tool (https://github.com/myint/docformatter)."
×
17

18
    default_main = ConsoleScript("docformatter")
×
19
    default_requirements = ["docformatter>=1.4,<1.5"]
×
20

21
    register_interpreter_constraints = True
×
22

23
    default_lockfile_resource = ("pants.backend.python.lint.docformatter", "docformatter.lock")
×
24

25
    skip = SkipOption("fmt", "lint")
×
26
    args = ArgsListOption(example="--wrap-summaries=100 --pre-summary-newline")
×
27

28

29
def rules():
×
30
    return [
×
31
        *collect_rules(),
32
        UnionRule(ExportableTool, Docformatter),
33
    ]
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