Skip to content

Make checks discover the local virtualenv - #3

Merged
evanfollis merged 1 commit into
mainfrom
agent/make-check-venv-discovery
Jul 26, 2026
Merged

Make checks discover the local virtualenv#3
evanfollis merged 1 commit into
mainfrom
agent/make-check-venv-discovery

Conversation

@evanfollis

Copy link
Copy Markdown
Owner

Makes the universal check command work from the federation orchestrator by selecting the repository virtualenv when present, while clean CI continues to use its installed ambient interpreter. Local make check: hygiene, Ruff, 65 tests.

@evanfollis
evanfollis marked this pull request as ready for review July 26, 2026 21:01
Copilot AI review requested due to automatic review settings July 26, 2026 21:02
@evanfollis
evanfollis merged commit bddf9f2 into main Jul 26, 2026
4 checks passed
@evanfollis
evanfollis deleted the agent/make-check-venv-discovery branch July 26, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s Makefile so make check (and related targets) prefer a local .venv interpreter when present, improving usability from environments that run checks inside an already-provisioned virtualenv while keeping CI able to run against the ambient installed python3.

Changes:

  • Introduce a PYTHON Makefile variable that selects .venv/bin/python when available, otherwise falls back to python3.
  • Update check, test, and lint targets to use $(PYTHON) instead of hardcoding python3.
  • Update setup to create .venv if missing and install test dependencies into it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
@@ -1,5 +1,7 @@
.PHONY: help setup check test lint typecheck

PYTHON := $(shell test -x .venv/bin/python && printf '%s' .venv/bin/python || command -v python3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants