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

pantsbuild / pants / 23818810901

31 Mar 2026 08:51PM UTC coverage: 52.374% (-40.5%) from 92.907%
23818810901

Pull #23204

github

web-flow
Merge 89fac2a7e into 0c78ceb96
Pull Request #23204: Port ScalarField, AsyncFieldMixin and friends to rust

9 of 13 new or added lines in 2 files covered. (69.23%)

23031 existing lines in 605 files now uncovered.

31644 of 60419 relevant lines covered (52.37%)

0.52 hits per line

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

94.74
/src/python/pants/backend/python/subsystems/debugpy.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
1✔
5

6
from pants.backend.python.subsystems.python_tool_base import PythonToolBase
1✔
7
from pants.backend.python.target_types import EntryPoint
1✔
8
from pants.core.subsystems.debug_adapter import DebugAdapterSubsystem
1✔
9
from pants.engine.rules import collect_rules
1✔
10
from pants.option.option_types import ArgsListOption
1✔
11

12
# pants: infer-dep(debugpy.lock*)
13

14

15
class DebugPy(PythonToolBase):
1✔
16
    options_scope = "debugpy"
1✔
17
    name = options_scope
1✔
18
    help_short = "An implementation of the Debug Adapter Protocol for Python (https://github.com/microsoft/debugpy)."
1✔
19

20
    default_main = EntryPoint("debugpy")
1✔
21
    default_requirements = ["debugpy>=1.6.5,<1.7"]
1✔
22

23
    register_interpreter_constraints = True
1✔
24

25
    default_lockfile_resource = ("pants.backend.python.subsystems", "debugpy.lock")
1✔
26

27
    args = ArgsListOption(example="--log-to-stderr")
1✔
28

29
    # NB: The debugpy arguments assume that:
30
    #   1. debugpy is being invoked in a venv (likely we're in a VenvPex)
31
    #   2. debugpy is in the same venv as the user code
32
    def get_args(self, debug_adapter: DebugAdapterSubsystem) -> tuple[str, ...]:
1✔
33
        return (
1✔
34
            "--listen",
35
            f"{debug_adapter.host}:{debug_adapter.port}",
36
            "--wait-for-client",
37
            *self.args,
38
            "-c",
39
            "__import__('runpy').run_path(__import__('os').environ['VIRTUAL_ENV'] + '/pex', run_name='__main__')",
40
        )
41

42

43
def rules():
1✔
UNCOV
44
    return collect_rules()
×
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