Skip to content

Add pre-commit configuration and update dependencies in pyproject.toml#1172

Merged
sei-ahouseholder merged 3 commits into
mainfrom
pre-commit-config
Jun 12, 2026
Merged

Add pre-commit configuration and update dependencies in pyproject.toml#1172
sei-ahouseholder merged 3 commits into
mainfrom
pre-commit-config

Conversation

@ahouseholder

@ahouseholder ahouseholder commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Adds the .pre-commit-config.yaml I'm using to the repository for other SSVC devs to optionally use.

install:

uv sync
uv run pre-commit 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.

ahouseholder and others added 2 commits June 11, 2026 13:04
- 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-ahouseholder sei-ahouseholder merged commit c6c380a into main Jun 12, 2026
6 checks passed
@sei-ahouseholder sei-ahouseholder deleted the pre-commit-config branch June 12, 2026 14:54
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.

3 participants