From d45100185fc2a82d61f27d8a76d9e0035f75a3d1 Mon Sep 17 00:00:00 2001 From: Shri Date: Wed, 18 Feb 2026 11:36:38 -0800 Subject: [PATCH] Add gitignore entries, py.typed marker, tool config, and CI test matrix - .gitignore: add .mypy_cache/, .ruff_cache/, .coverage, htmlcov/ - tame/py.typed: PEP 561 marker so type checkers know this package ships type hints - pyproject.toml: add keywords for PyPI discoverability, add [tool.ruff] and [tool.mypy] sections so IDEs pick up the same settings as CI - ci.yml: run tests on Python 3.11, 3.12, and 3.13 (matching the versions declared in pyproject.toml); move --ignore-missing-imports into pyproject.toml [tool.mypy] config --- .github/workflows/ci.yml | 7 +++++-- .gitignore | 4 ++++ pyproject.toml | 17 +++++++++++++++++ tame/py.typed | 0 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 tame/py.typed diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e95e8e..ce2b61c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,15 +25,18 @@ jobs: with: python-version: "3.12" - run: uv sync --dev - - run: uv run mypy tame/ --ignore-missing-imports + - run: uv run mypy tame/ test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v4 with: - python-version: "3.12" + python-version: ${{ matrix.python-version }} - run: uv sync --dev - run: uv run pytest tests/ --tb=short -v diff --git a/.gitignore b/.gitignore index f1536f0..cb251e3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ build/ .venv/ *.egg .pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +htmlcov/ diff --git a/pyproject.toml b/pyproject.toml index 94ed845..daf2062 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,16 @@ classifiers = [ "Topic :: Terminals :: Terminal Emulators/X Terminals", "Topic :: Software Development", ] +keywords = [ + "terminal", + "multiplexer", + "tui", + "ai", + "agent", + "tmux", + "session", + "textual", +] dependencies = [ "textual>=0.47.0", "rich>=13.0.0", @@ -57,6 +67,13 @@ path = "tame/__init__.py" [tool.hatch.build.targets.wheel] packages = ["tame"] +[tool.ruff] +target-version = "py311" + +[tool.mypy] +python_version = "3.11" +ignore_missing_imports = true + [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"] diff --git a/tame/py.typed b/tame/py.typed new file mode 100644 index 0000000..e69de29