fix: add uv dependency audit#316
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds dependency vulnerability scanning via uv audit --locked to the project and CI, while also updating the developer tooling stack (switching from pre-commit/mypy to prek/ty) and removing now-obsolete mypy configuration.
Changes:
- Add
make audit(backed byuv audit --locked) and run it in CI before dependency sync. - Configure
uvwith a 7-dayexclude-newerwindow and document local audit usage. - Replace mypy-based type-checking configuration with
ty, and switch CI/lint commands frompre-committoprek.
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_wasm.py | Remove per-file mypy error-code disable directive. |
| tests/test_phirgen.py | Remove per-file mypy error-code disable directive. |
| tests/test_parallelization.py | Remove per-file mypy error-code disable directive. |
| tests/test_parallel_tk2.py | Remove per-file mypy error-code disable directive. |
| tests/test_api.py | Remove per-file mypy error-code disable directive. |
| README.md | Update dev setup to use prek; document dependency audit usage. |
| pytket/phir/sharding/sharder.py | Simplify Bit extraction from command args; remove type-ignore. |
| pytket/phir/phirgen.py | Remove per-file mypy error-code disable directive. |
| pytket/phir/phirgen_parallel.py | Add AngleKey type alias to better type dict keys for angle grouping. |
| pytket/phir/cli.py | Remove per-file mypy disable directive. |
| pytket/phir/api.py | Remove per-file mypy error-code disable directive. |
| pyproject.toml | Add prek/ty dev deps; configure uv exclude-newer; add ty config. |
| mypy.ini | Remove mypy configuration file. |
| MANIFEST.in | Stop including/excluding removed mypy.ini. |
| Makefile | Switch install/dev flows to uv sync; add audit target; use prek for lint. |
| .pre-commit-config.yaml | Bump hook revs; replace mypy hook with local ty hook. |
| .github/workflows/python-app.yml | Run dependency audit step before uv sync; use prek in CI. |
| .github/workflows/pre-commit-au.yml | Remove scheduled pre-commit auto-update workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Summary
uv audit --lockedviamake auditand run it beforeuv syncin CIuvwith a 7-dayexclude-newercooldown and document local audit usagepre-commit/mypytoprek/tyFixes #312
Validation
make auditmake lintmake tests