[diff-contract] Add pre-commit hook integration
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, python
- Domain
- developer-experience, tooling
Research direction
Start with the diff-contract validate CLI entry point and the project's existing documentation entry points. Add .pre-commit-hooks.yaml, document pip install diff-contract && pre-commit install, and verify that the hook runs diff-contract validate on staged files.
Written by the indexing model from the issue text.
Description
Context
diff-contract supports CI (GitHub Actions) and manual runs. A pre-commit hook would catch contract violations before they leave the developer's machine.
Acceptance Criteria
-
.pre-commit-hooks.yamlfor the pre-commit framework - Document setup:
pip install diff-contract && pre-commit install - Hook runs
diff-contract validateon staged files
- Dominant language
- Python
- Stars
- 1
- Forks
- 3
- Avg merge
- 8h 23m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yunaremaia/diff-contract
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yunaremaia/diff-contract#70 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
yunaremaia/diff-contract#56 ·
-
good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
yunaremaia/diff-contract#43 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
yunaremaia/diff-contract#41 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yunaremaia/diff-contract#30 ·
All issues in yunaremaia/diff-contract
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100