Skip to content

Perf/pre commit optimization#5

Merged
HC-ONLINE merged 3 commits into
mainfrom
perf/pre-commit-optimization
May 8, 2026
Merged

Perf/pre commit optimization#5
HC-ONLINE merged 3 commits into
mainfrom
perf/pre-commit-optimization

Conversation

@HC-ONLINE
Copy link
Copy Markdown
Owner

Description

This pull request optimizes the pre-commit configuration by introducing a multi-stage architecture to improve developer experience and security posture. The changes include:

  • Restructured pytest hook to execute only on pre-push stage instead of pre-commit, reducing local commit friction
  • Enhanced security validations with additional hooks for YAML syntax checking, TOML validation, and merge conflict detection
  • Simplified pyright configuration by removing duplicate dependency declarations and using system Python runtime, improving maintainability

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have followed the style guidelines of this project (Ruff & Pyright)
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly

@HC-ONLINE HC-ONLINE merged commit 4bff231 into main May 8, 2026
3 checks passed
@HC-ONLINE HC-ONLINE deleted the perf/pre-commit-optimization branch May 8, 2026 20:49
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.

1 participant