• 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/pyupgrade/subsystem.py
1
# Copyright 2021 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 PyUpgrade(PythonToolBase):
×
15
    options_scope = "pyupgrade"
×
16
    name = "pyupgrade"
×
17
    help_short = (
×
18
        "Upgrade syntax for newer versions of the language (https://github.com/asottile/pyupgrade)."
19
    )
20

21
    default_main = ConsoleScript("pyupgrade")
×
22
    default_requirements = ["pyupgrade>=2.33.0,<4"]
×
23

24
    register_interpreter_constraints = True
×
25

26
    default_lockfile_resource = ("pants.backend.python.lint.pyupgrade", "pyupgrade.lock")
×
27

28
    skip = SkipOption("fmt", "lint")
×
29
    args = ArgsListOption(example="--py39-plus --keep-runtime-typing")
×
30

31

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