@@ -45,8 +45,8 @@ git remote add upstream https://github.com/python-wheel-build/fromager.git
4545# 4. Create development environment
4646hatch env create
4747
48- # 5. Install pre-commit hook (optional but recommended)
49- ./scripts/setup-pre-commit-hook.sh
48+ # 5. Install pre-commit hooks (optional but recommended)
49+ hatch run lint:install-hooks
5050```
5151
5252### Contribution Workflow
@@ -64,7 +64,7 @@ git checkout -b feat/<short-description>
6464hatch run test:test tests/test_< module> .py # Test your specific changes
6565
6666# 4. Before committing, run full quality checks
67- hatch run lint:fix && hatch run test:test && hatch run mypy:check && hatch run lint:check
67+ hatch run lint:precommit
6868
6969# 5. Commit using Conventional Commits
7070git commit -m " feat(scope): short summary"
@@ -81,18 +81,16 @@ To ensure quality checks run automatically before each commit, install the pre-c
8181
8282``` bash
8383# Install the pre-commit hook (run once after cloning)
84- ./scripts/setup-pre-commit-hook.sh
84+ hatch run lint:install-hooks
8585
86- # The hook automatically runs before each commit:
87- # - hatch run lint:check
88- # - hatch run mypy:check
86+ # The hook automatically runs a selection of linters before each commit.
8987
9088# If the hook fails, it will prevent the commit and show helpful messages
91- # You can fix issues automatically with:
89+ # You can fix some issues automatically with:
9290hatch run lint:fix
9391```
9492
95- The pre-commit hook prevents commits that would fail CI quality checks, saving time and ensuring consistent code quality.
93+ The pre-commit hook prevents commits that would fail some CI quality checks, saving time and ensuring consistent code quality.
9694
9795---
9896
0 commit comments