Add pre-commit configuration and update dependencies in pyproject.toml#1172
Merged
Conversation
- Remove 'always_run: true' so pytest only runs when *.py files change - Add 'files' pattern to match Python files - Reduces unnecessary test runs on non-Python commits Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Use YAML anchor for Black version (easier to update in future) - Broaden doctools trigger from decision_points/tables to all src/ssvc/ Python - Exclude src/ssvc/api/ and src/ssvc/test/ from doctools (avoid false positives) - Change pytest from verbose (-v) to quiet (-q) with short tracebacks (--tb=short) - Only show test output on failures for cleaner commits Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
sei-renae
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
.pre-commit-config.yamlI'm using to the repository for other SSVC devs to optionally use.install:
Note that #1173 contains additional file changes that bring the repo into compliance with the hooks defined here. That PR should merge in to this one before this one merges into main.