lablup / lablup/backend.ai

Add direct test execution to pre-commit hook

Open
#7,326 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Summary

Add direct test execution step to the pre-commit hook to catch test failures before commits.

## Current State

The pre-commit hook (`scripts/pre-commit.sh`) currently runs:

- `pants lint` on changed files
- `pants check` (type checking) on changed files

## Proposed Change

Add test execution for directly affected tests before allowing commits.

JIRA Issue: BA-3387

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.