From 4a0877dc4e30c778f94d6a7187e90134c7cb0d97 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Wed, 2 Dec 2026 02:58:51 -0600 Subject: [PATCH] ci(chore[tmux]): adopt libtmux/setup-tmux why: Replace the per-repo apt-get install, `.github/scripts/tmux_build.py` source builder, and manual `actions/cache` wiring with the shared `libtmux/setup-tmux` (`v0.1.0`) action, which serves verified prebuilt binaries where published and skips apt-get on warm cache hits. what: - Replace the apt-get, `tmux_build.py`, cache restore/save, and native cache-recovery steps in `.github/workflows/tests.yml` with `libtmux/setup-tmux@96c8f0d575eae62d1c3419ef919b69ecc43f3cac # v0.1.0` - Delete `.github/scripts/tmux_build.py`, `.github/scripts/test_tmux_build.py`, and `.github/tmux-releases.toml` - Drop `.github/scripts` from ruff commands in `tests.yml` and `justfile`, and from `[tool.ty.src]` in `pyproject.toml` - Update `.github/CONTRIBUTING.md` for `libtmux/setup-tmux` in CI and `libtmux/mise-tmux` (`v0.1.0`) for local multi-version tmux testing --- .github/CONTRIBUTING.md | 48 ++--- .github/scripts/test_tmux_build.py | 180 ------------------ .github/scripts/tmux_build.py | 282 ----------------------------- .github/tmux-releases.toml | 12 -- .github/workflows/tests.yml | 41 +---- justfile | 6 +- pyproject.toml | 1 - 7 files changed, 28 insertions(+), 542 deletions(-) delete mode 100644 .github/scripts/test_tmux_build.py delete mode 100644 .github/scripts/tmux_build.py delete mode 100644 .github/tmux-releases.toml diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index b987d64e11..8d2f198a50 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -57,7 +57,7 @@ $ uv run ty check ``` The check targets the minimum supported Python and includes the package, -tests, root fixtures, Sphinx configuration and extensions, and CI scripts. +tests, root fixtures, and Sphinx configuration and extensions. CI also checks the matrix Python version with `--python-version`. Test: @@ -132,35 +132,27 @@ Include doctests in the watch loop: $ uv run ptw . --now --doctest-modules ``` -### Native tmux in CI - -The test workflow builds the versions in its existing matrix. Stable -versions use the official release archives and SHA256 pins in -`.github/tmux-releases.toml`, including tmux 3.8. The selected release's -checksum is part of its cache identity. `master` resolves once to a commit and -fetches that exact commit. The build follows tmux's -[release and source-checkout instructions](https://github.com/tmux/tmux/blob/3.8/README#L23-L37). -Only the installed prefix is cached. Each build uses a fresh source tree -and up to four available processors. - -Cache keys include the actual runner image and image version, architecture, -compiler and dependency versions, source identity, and build script. -Dependencies are installed before validation on hits and misses. Every -restored executable must match its recorded hash and version, start a -private daemon, and report the same connected version. A failed check -discards that job's prefix and rebuilds it. - -The workflow saves a validated installation before library tests run. -GitHub caches are immutable: repairing an invalid exact hit fixes the -current job, but cannot overwrite that entry. A build-script change -invalidates its key for later jobs. Never add a broad restore-key fallback -for native binaries. - -The CI scripts use the standard-library TOML reader, which Python 3.11 -added. Run the cache regressions against an installed tmux: +### Native tmux in CI and local version testing + +The test workflow installs each matrix `tmux` version with +[libtmux/setup-tmux](https://github.com/libtmux/setup-tmux) (`v0.1.0`), +using verified prebuilt binaries where published (`3.6a`–`3.8`, +excluding `3.7`) and cached static-`libevent` source builds for older +releases and `master`. Restored caches are validated before library tests +run. + +For local testing against the same `tmux` version matrix alongside this +repository's `.tool-versions`, install +[libtmux/mise-tmux](https://github.com/libtmux/mise-tmux) (`v0.1.0`): + +```console +$ mise plugins install tmux https://github.com/libtmux/mise-tmux +``` + +Run the suite against a specific release: ```console -$ uv run pytest .github/scripts/test_tmux_build.py --reruns=0 +$ mise exec tmux@3.8 -- uv run pytest ``` ## Debugging diff --git a/.github/scripts/test_tmux_build.py b/.github/scripts/test_tmux_build.py deleted file mode 100644 index 1ddb0b75a1..0000000000 --- a/.github/scripts/test_tmux_build.py +++ /dev/null @@ -1,180 +0,0 @@ -"""Regressions for reusing native executables on CI runners.""" - -from __future__ import annotations - -import hashlib -import json -import pathlib -import shutil -import subprocess - -import pytest -import tmux_build - - -@pytest.fixture -def native() -> tuple[pathlib.Path, dict[str, str]]: - """Use the runner's real tmux for validation and private daemon checks.""" - executable = shutil.which("tmux") - assert executable is not None - binary = pathlib.Path(executable).resolve() - version = ( - subprocess.run([str(binary), "-V"], check=True, capture_output=True, text=True) - .stdout.strip() - .removeprefix("tmux ") - ) - return binary, {"version": version if version in tmux_build._RELEASES else "master"} - - -def _install(prefix: pathlib.Path, native: pathlib.Path) -> pathlib.Path: - binary = prefix / "bin" / "tmux" - binary.parent.mkdir(parents=True) - shutil.copy2(native, binary) - return binary - - -def _record(prefix: pathlib.Path, identity: dict[str, str]) -> None: - digest = hashlib.sha256((prefix / "bin" / "tmux").read_bytes()).hexdigest() - (prefix / "build.json").write_text( - json.dumps({"identity": identity, "sha256": digest}) - ) - - -@pytest.mark.parametrize("fault", ["loader", "version", "identity", "hash", "metadata"]) -def test_broken_cached_executable_is_rebuilt( - tmp_path: pathlib.Path, - monkeypatch: pytest.MonkeyPatch, - native: tuple[pathlib.Path, dict[str, str]], - fault: str, -) -> None: - """Replace slow compilation only; run validation against a real executable.""" - installed, identity = native - prefix = tmp_path / "tmux" - binary = _install(prefix, installed) - if fault == "loader": - binary.write_text("#!/bin/sh\nexit 127\n") - elif fault == "version": - binary.write_text("#!/bin/sh\necho 'unrelated executable'\n") - _record(prefix, identity if fault != "identity" else {"version": "other"}) - if fault == "hash": - with binary.open("ab") as output: - output.write(b"changed") - elif fault == "metadata": - (prefix / "build.json").write_text("{") - stale = prefix / "old-object.o" - stale.touch() - sibling = tmp_path / "borrowed" - sibling.write_text("keep") - - def compile_fresh(destination: pathlib.Path, _: dict[str, str]) -> None: - assert not destination.exists() - _install(destination, installed) - - monkeypatch.setattr(tmux_build, "_build", compile_fresh) - assert tmux_build._prepare(prefix, identity) - assert not stale.exists() - assert sibling.read_text() == "keep" - assert binary.read_bytes() == installed.read_bytes() - assert tmux_build._valid(prefix, identity) - - -def test_valid_cache_skips_build_and_leaves_other_servers_alive( - tmp_path: pathlib.Path, - monkeypatch: pytest.MonkeyPatch, - native: tuple[pathlib.Path, dict[str, str]], -) -> None: - """Avoid compilation on a valid hit; exercise real startup and cleanup.""" - installed, identity = native - prefix = tmp_path / "tmux" - binary = _install(prefix, installed) - _record(prefix, identity) - inode = binary.stat().st_ino - - def unexpected_build(_: pathlib.Path, __: dict[str, str]) -> None: - pytest.fail("A validated cache must not rebuild") - - monkeypatch.setattr(tmux_build, "_build", unexpected_build) - monkeypatch.delenv("TMUX", raising=False) - monkeypatch.delenv("TMUX_PANE", raising=False) - monkeypatch.setenv("SHELL", "/bin/sh") - monkeypatch.setenv("TERM", "xterm-256color") - command = [str(installed), "-f", "/dev/null", "-S", str(tmp_path / "borrowed.sock")] - subprocess.run( - [*command, "new-session", "-d", "-s", "keep", "exec cat"], check=True - ) - try: - assert not tmux_build._prepare(prefix, identity) - assert binary.stat().st_ino == inode - subprocess.run([*command, "has-session", "-t", "keep"], check=True) - finally: - subprocess.run([*command, "kill-server"], check=True) - - -def test_symlink_cache_does_not_delete_its_target( - tmp_path: pathlib.Path, - monkeypatch: pytest.MonkeyPatch, - native: tuple[pathlib.Path, dict[str, str]], -) -> None: - """Replace compilation only; discard the cache link without following it.""" - installed, identity = native - borrowed = tmp_path / "borrowed" - original = _install(borrowed, installed) - _record(borrowed, identity) - prefix = tmp_path / "tmux" - prefix.symlink_to(borrowed, target_is_directory=True) - - def compile_fresh(destination: pathlib.Path, _: dict[str, str]) -> None: - _install(destination, installed) - - monkeypatch.setattr(tmux_build, "_build", compile_fresh) - assert tmux_build._prepare(prefix, identity) - assert not prefix.is_symlink() - assert original.read_bytes() == installed.read_bytes() - - -def test_failed_build_does_not_write_a_valid_cache_record( - tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch -) -> None: - """Inject a compiler failure; a partial installation must remain invalid.""" - prefix = tmp_path / "tmux" - - def fail_build(destination: pathlib.Path, _: dict[str, str]) -> None: - destination.mkdir() - msg = "compiler failed" - raise RuntimeError(msg) - - monkeypatch.setattr(tmux_build, "_build", fail_build) - with pytest.raises(RuntimeError, match="compiler failed"): - tmux_build._prepare(prefix, {"version": "3.6"}) - assert not (prefix / "build.json").exists() - - -@pytest.mark.parametrize( - "field", ["image", "arch", "source", "recipe", "compiler", "packages"] -) -def test_changed_build_environment_cannot_restore_the_same_key(field: str) -> None: - """A source, recipe, toolchain, or runner change invalidates the binary.""" - identity = { - "version": "3.6", - "image": "ubuntu24-20260920.1", - "arch": "x86_64", - "source": "source-a", - "recipe": "recipe-a", - "compiler": "compiler-a", - "packages": "packages-a", - } - changed = dict(identity) - changed[field] += "-changed" - assert tmux_build._cache_key(identity) != tmux_build._cache_key(changed) - - -@pytest.mark.parametrize("field", ["ImageOS", "ImageVersion"]) -def test_missing_runner_image_is_rejected_before_source_resolution( - monkeypatch: pytest.MonkeyPatch, field: str -) -> None: - """An unbound runner variable must not produce another version-only key.""" - monkeypatch.setenv("ImageOS", "ubuntu26") - monkeypatch.setenv("ImageVersion", "20261105.1") - monkeypatch.setenv(field, "") - with pytest.raises(ValueError, match="runner image"): - tmux_build._identity("master") diff --git a/.github/scripts/tmux_build.py b/.github/scripts/tmux_build.py deleted file mode 100644 index c0708c138a..0000000000 --- a/.github/scripts/tmux_build.py +++ /dev/null @@ -1,282 +0,0 @@ -"""Build and validate the private tmux installation used by GitHub Actions.""" - -from __future__ import annotations - -import argparse -import hashlib -import json -import os -import pathlib -import platform -import re -import shutil -import subprocess -import tempfile -import tomllib - -_REPOSITORY = "https://github.com/tmux/tmux.git" -with (pathlib.Path(__file__).parents[1] / "tmux-releases.toml").open("rb") as _pins: - _RAW_RELEASES: object = tomllib.load(_pins)["releases"] - assert isinstance(_RAW_RELEASES, dict) - _RELEASES: dict[str, str] = {str(k): str(v) for k, v in _RAW_RELEASES.items()} - -_BUILD_ENV = { - "CC": "cc", - "CFLAGS": "-O2", - "CPPFLAGS": "", - "LDFLAGS": "", - "MAKEFLAGS": "", -} - - -class _CleanupError(RuntimeError): - """The private smoke-test daemon could not be cleaned up.""" - - -def _sha256(path: pathlib.Path) -> str: - return hashlib.sha256(path.read_bytes()).hexdigest() - - -def _output(args: list[str]) -> str: - return subprocess.run( - args, check=True, capture_output=True, text=True - ).stdout.strip() - - -def _identity(version: str) -> dict[str, str]: - parts = [os.environ.get(name, "") for name in ("ImageOS", "ImageVersion")] - if not all(re.fullmatch(r"[A-Za-z0-9_.-]+", part) for part in parts): - msg = "Missing or invalid runner image identity" - raise ValueError(msg) - image = "-".join(parts) - source = _RELEASES.get(version) - if source is None: - source = _output( - ["git", "ls-remote", _REPOSITORY, "refs/heads/master"] - ).split()[0] - if not re.fullmatch(r"[0-9a-f]{40}", source): - msg = "Could not resolve tmux master to a commit" - raise ValueError(msg) - return { - "version": version, - "source": source, - "image": image, - "arch": platform.machine(), - "recipe": _sha256(pathlib.Path(__file__)), - "compiler": _output(["cc", "--version"]), - "packages": _output( - [ - "dpkg-query", - "-W", - "-f=${Package}=${Version}\n", - "gcc", - "libc6", - "libevent-dev", - "libncurses-dev", - "libutempter-dev", - "bison", - "autoconf", - "automake", - "pkg-config", - ] - ), - } - - -def _cache_key(identity: dict[str, str]) -> str: - digest = hashlib.sha256(json.dumps(identity, sort_keys=True).encode()).hexdigest() - return f"tmux-v2-{identity['version']}-{digest}" - - -def _probe(binary: pathlib.Path, version: str) -> None: - reported = subprocess.run( - [str(binary), "-V"], check=True, capture_output=True, text=True, timeout=1 - ).stdout.strip() - if not reported.startswith("tmux ") or ( - version != "master" and reported != f"tmux {version}" - ): - msg = f"Expected tmux {version}, got {reported!r}" - raise ValueError(msg) - env = {k: v for k, v in os.environ.items() if k not in {"TMUX", "TMUX_PANE"}} - env.update({"SHELL": "/bin/sh", "TERM": "xterm-256color", "LC_ALL": "C.UTF-8"}) - with tempfile.TemporaryDirectory(prefix="lt-ci-") as temporary: - socket = pathlib.Path(temporary) / "socket" - command = [str(binary), "-f", "/dev/null", "-S", str(socket)] - try: - subprocess.run( - [*command, "new-session", "-d", "-s", "probe", "exec cat"], - check=True, - capture_output=True, - env=env, - timeout=1, - ) - connected = subprocess.run( - [*command, "display-message", "-p", "#{version}"], - check=True, - capture_output=True, - text=True, - env=env, - timeout=1, - ).stdout.strip() - if reported != f"tmux {connected}": - msg = f"Connected daemon version differs: {connected!r}" - raise ValueError(msg) - finally: - if socket.exists(): - try: - subprocess.run( - [*command, "kill-server"], - check=True, - capture_output=True, - env=env, - timeout=1, - ) - except (OSError, subprocess.SubprocessError) as error: - msg = "Failed to clean up the private tmux smoke test" - raise _CleanupError(msg) from error - - -def _valid(prefix: pathlib.Path, identity: dict[str, str]) -> bool: - binary = prefix / "bin" / "tmux" - try: - if prefix.is_symlink() or binary.parent.is_symlink() or binary.is_symlink(): - return False - record = json.loads((prefix / "build.json").read_text()) - if record != {"identity": identity, "sha256": _sha256(binary)}: - return False - _probe(binary, identity["version"]) - except (OSError, ValueError, subprocess.SubprocessError) as error: - print(f"tmux cache rejected: {error}", flush=True) - return False - return True - - -def _build(prefix: pathlib.Path, identity: dict[str, str]) -> None: - env = dict(os.environ, **_BUILD_ENV) - with tempfile.TemporaryDirectory( - prefix="tmux-source-", dir=prefix.parent - ) as temporary: - work = pathlib.Path(temporary) - version = identity["version"] - if version == "master": - source = work / "tmux" - subprocess.run(["git", "init", str(source)], check=True) - subprocess.run( - [ - "git", - "-C", - str(source), - "fetch", - "--depth=1", - _REPOSITORY, - identity["source"], - ], - check=True, - ) - subprocess.run( - ["git", "-C", str(source), "checkout", "--detach", "FETCH_HEAD"], - check=True, - ) - if ( - _output(["git", "-C", str(source), "rev-parse", "HEAD"]) - != identity["source"] - ): - msg = "Fetched tmux commit differs from the cache identity" - raise ValueError(msg) - subprocess.run(["sh", "autogen.sh"], check=True, cwd=source, env=env) - else: - archive = work / "tmux.tar.gz" - subprocess.run( - [ - "curl", - "--fail", - "--location", - "--retry", - "2", - "--output", - str(archive), - f"https://github.com/tmux/tmux/releases/download/{version}/tmux-{version}.tar.gz", - ], - check=True, - ) - if _sha256(archive) != identity["source"]: - msg = "Downloaded tmux archive does not match its pinned SHA256" - raise ValueError(msg) - subprocess.run( - [ - "tar", - "--extract", - "--gzip", - "--file", - str(archive), - "--directory", - str(work), - "--no-same-owner", - "--no-same-permissions", - ], - check=True, - ) - source = work / f"tmux-{version}" - subprocess.run( - ["./configure", f"--prefix={prefix}"], check=True, cwd=source, env=env - ) - jobs = min(4, len(os.sched_getaffinity(0))) - subprocess.run(["make", f"-j{jobs}"], check=True, cwd=source, env=env) - subprocess.run(["make", "install"], check=True, cwd=source, env=env) - - -def _prepare(prefix: pathlib.Path, identity: dict[str, str]) -> bool: - if _valid(prefix, identity): - print(f"Validated cached tmux {identity['version']}", flush=True) - return False - if prefix.is_symlink(): - prefix.unlink() - elif prefix.exists(): - shutil.rmtree(prefix) - _build(prefix, identity) - binary = prefix / "bin" / "tmux" - _probe(binary, identity["version"]) - (prefix / "build.json").write_text( - json.dumps( - { - "identity": identity, - "sha256": _sha256(binary), - }, - sort_keys=True, - ) - + "\n" - ) - return True - - -def _main() -> None: - parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("phase", choices=["plan", "prepare"]) - parser.add_argument("version", choices=[*_RELEASES, "master"]) - args = parser.parse_args() - root = pathlib.Path(os.environ["RUNNER_TEMP"]).resolve(strict=True) - prefix = root / f"tmux-{args.version}" - plan = root / f"tmux-{args.version}.json" - if args.phase == "plan": - identity = _identity(args.version) - plan.write_text(json.dumps(identity, sort_keys=True) + "\n") - print(json.dumps(identity, indent=2), flush=True) - with pathlib.Path(os.environ["GITHUB_OUTPUT"]).open("a") as output: - output.write(f"prefix={prefix}\nkey={_cache_key(identity)}\n") - else: - identity = json.loads(plan.read_text()) - if identity["version"] != args.version: - msg = "Build plan version does not match the requested tmux" - raise ValueError(msg) - rebuilt = _prepare(prefix, identity) - if rebuilt and os.environ.get("CACHE_HIT") == "true": - print( - "::warning::Invalid exact cache rebuilt locally. Change the build " - "recipe to invalidate the immutable cache entry on subsequent runs." - ) - with pathlib.Path(os.environ["GITHUB_PATH"]).open("a") as output: - output.write(f"{prefix / 'bin'}\n") - - -if __name__ == "__main__": - _main() diff --git a/.github/tmux-releases.toml b/.github/tmux-releases.toml deleted file mode 100644 index 5f0b0e73b5..0000000000 --- a/.github/tmux-releases.toml +++ /dev/null @@ -1,12 +0,0 @@ -# SHA256 pins for official tmux release archives. -# https://github.com/tmux/tmux/releases - -[releases] -"3.3a" = "e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f" -"3.4" = "551ab8dea0bf505c0ad6b7bb35ef567cdde0ccb84357df142c254f35a23e19aa" -"3.5" = "2fe01942e7e7d93f524a22f2c883822c06bc258a4d61dba4b407353d7081950f" -"3.6" = "136db80cfbfba617a103401f52874e7c64927986b65b1b700350b6058ad69607" -"3.7a" = "8ee44ce951182845fd57ad12dd6f27fb677b1afb900e2e84df4798112ed0dbf0" -"3.7b" = "87f2e99e3b685973f2ca002ffd6ed7e51a5744f7009daae5a15670b6d532db96" -"3.7c" = "7c60cae9a0e25288e2e24750aafc9e8800fc7fd4555e447e1b29ee4201cfb3bf" -"3.8" = "e79c699c7e949dccd0a4a125e17b8d1261e311b16979dbc8eb34542f3966d82e" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 447df7c112..a46d0fc4c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,47 +41,16 @@ jobs: - name: Install dependencies run: uv sync --all-extras --dev - - name: Install tmux build and runtime dependencies - run: | - sudo apt-get update - sudo apt-get install --yes --no-install-recommends \ - autoconf automake bison build-essential libevent-dev \ - libncurses-dev libutempter-dev pkg-config - - - name: Identify tmux source and build environment - id: tmux-build - run: uv run python .github/scripts/tmux_build.py plan "$TMUX_VERSION" - env: - TMUX_VERSION: ${{ matrix.tmux-version }} - - - name: Restore tmux ${{ matrix.tmux-version }} - id: tmux-build-cache - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 - with: - path: ${{ steps.tmux-build.outputs.prefix }} - key: ${{ steps.tmux-build.outputs.key }} - - - name: Validate or rebuild tmux ${{ matrix.tmux-version }} - run: uv run python .github/scripts/tmux_build.py prepare "$TMUX_VERSION" - env: - TMUX_VERSION: ${{ matrix.tmux-version }} - CACHE_HIT: ${{ steps.tmux-build-cache.outputs.cache-hit }} - - - name: Save validated tmux ${{ matrix.tmux-version }} - if: steps.tmux-build-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + - name: Setup tmux ${{ matrix.tmux-version }} + uses: libtmux/setup-tmux@96c8f0d575eae62d1c3419ef919b69ecc43f3cac # v0.1.0 with: - path: ${{ steps.tmux-build.outputs.prefix }} - key: ${{ steps.tmux-build.outputs.key }} - - - name: Test native cache recovery - run: uv run pytest .github/scripts/test_tmux_build.py --reruns=0 + version: ${{ matrix.tmux-version }} - name: Lint with ruff check - run: uv run ruff check . .github/scripts + run: uv run ruff check . - name: Format with ruff format - run: uv run ruff format . .github/scripts --check + run: uv run ruff format . --check - name: Type-check the minimum supported Python run: uv run ty check diff --git a/justfile b/justfile index 3551b7cb33..90b9bb56a1 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ set shell := ["bash", "-uc"] # File patterns -py_files := "find . -type f \\( -path './.github/scripts/*' -o -not -path '*/\\.*' \\) | grep -i '.*[.]py$' 2> /dev/null" +py_files := "find . -type f -not -path '*/\\.*' | grep -i '.*[.]py$' 2> /dev/null" doc_files := "find . -type f -not -path '*/\\.*' | grep -i '.*[.]rst$\\|.*[.]md$\\|.*[.]css$\\|.*[.]py$\\|mkdocs\\.yml\\|CHANGES\\|TODO\\|.*conf\\.py' 2> /dev/null" all_files := "find . -type f -not -path '*/\\.*' | grep -i '.*[.]py$\\|.*[.]rst$\\|.*[.]md$\\|.*[.]css$\\|.*[.]py$\\|mkdocs\\.yml\\|CHANGES\\|TODO\\|.*conf\\.py' 2> /dev/null" @@ -83,12 +83,12 @@ build-capabilities: # Format code with ruff [group: 'lint'] ruff-format: - uv run ruff format . .github/scripts + uv run ruff format . # Run ruff linter [group: 'lint'] ruff: - uv run ruff check . .github/scripts + uv run ruff check . # Watch files and run ruff on change [group: 'lint'] diff --git a/pyproject.toml b/pyproject.toml index e5f9b2dc15..b78ebe7a84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,7 +146,6 @@ include = [ "src", "tests", "docs", - ".github/scripts", "conftest.py", ]