Context
From PR #113 discussion: #113 (comment)
The current pre-commit setup runs Python tools (ruff, pylint, etc.) in a local virtual environment. For developers using Docker dev-containers, this creates duplication: tools are installed both locally and in the container.
Problem Statement
- Pre-commit hooks currently assume local Python/venv installation
- Developers using dev-containers need tools installed twice (local + container)
- Potential drift between local and container tool versions
Investigation Goals
- Feasibility: Can pre-commit hooks call tools via
docker exec on an always-up container?
- Performance: Is the
docker exec overhead acceptable for frequent commit operations?
- Configuration: How to conditionally switch between local and container execution?
- Cross-platform: Does this approach work well on Linux, macOS, and Windows (with Docker Desktop)?
Potential Solutions to Explore
Acceptance Criteria
- Document findings with pros/cons of each approach
- Recommend a path forward (implement, defer, or explicitly decide against)
Related
Context
From PR #113 discussion: #113 (comment)
The current pre-commit setup runs Python tools (ruff, pylint, etc.) in a local virtual environment. For developers using Docker dev-containers, this creates duplication: tools are installed both locally and in the container.
Problem Statement
Investigation Goals
docker execon an always-up container?docker execoverhead acceptable for frequent commit operations?Potential Solutions to Explore
docker execAcceptance Criteria
Related