Skip to main content
Version: 2.19 (deprecated)

Plugin helpers

Helpers which make writing plugins easier.


Pants has helpers to make writing plugins easier.

Python

Lockfiles

The lockfiles for most Python tools fit into common categories. Pants has helpers to generate the rules for lockfile generation.

  • A single Python package that could be installed with pip install my_tool
from pants.backend.python.subsystems.python_tool_base import (
LockfileRules,
PythonToolBase,
)

class Isort(PythonToolBase):
options_scope = "isort"
...
lockfile_rules_type = LockfileRules.SIMPLE