Skip to content

Modernize pre-commit quality checks - #46

Merged
yh-yao merged 1 commit into
mainfrom
chore/precommit-py312
Jul 15, 2026
Merged

Modernize pre-commit quality checks#46
yh-yao merged 1 commit into
mainfrom
chore/precommit-py312

Conversation

@Pulserius

Copy link
Copy Markdown
Contributor

Summary

Modernizes FedGraph's pre-commit toolchain and documents its workflow.

  • Updates pinned pre-commit hooks for the current development environment.
  • Adds Black-compatible isort and Python 3.9-targeted Mypy settings.
  • Adds the development dependency group required for local quality checks.
  • Applies required formatting and narrowly scoped typing guidance.
  • Documents triggers, configured hooks, related configuration files, and the boundary between pre-commit and pytest.

Why

The previous hook versions and type-checking setup no longer passed reliably with the current FedGraph development environment.

Validation

  • python -m pre_commit run --all-files
  • git diff --check

@Pulserius
Pulserius requested a review from yh-yao July 15, 2026 02:11
@yh-yao
yh-yao merged commit 30fc4b1 into main Jul 15, 2026
2 checks passed
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