Code style

Linting and formatting

libtmux-mcp uses ruff for linting and formatting:

$ uv run ruff check .
$ uv run ruff format .

Type checking

mypy with strict mode:

$ uv run mypy

Docstrings

NumPy-style docstrings throughout.

Imports

  • from __future__ import annotations at the top of every file.

  • import typing as t and access via namespace.

  • Standard-library modules imported by namespace (import pathlib, not from pathlib import Path).