Skip to content

Commit a7b6098

Browse files
chore(ci): use requirements.txt for snyk
1 parent d4f3a5d commit a7b6098

4 files changed

Lines changed: 5 additions & 247 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
stages: [manual]
2828
- id: sync-requirements
2929
name: sync-requirements
30-
entry: bash -c "uv export --all-extras --no-hashes > snyk-requirements.txt"
30+
entry: bash -c "uv export --all-extras --no-hashes > requirements.txt"
3131
language: system
3232
pass_filenames: false
3333
files: ^uv.lock$

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ docker run -it --rm \
117117
### Run Snyk locally (dependencies)
118118

119119
```bash
120-
uv run poe snyk-requirements
121-
snyk test --file=snyk-requirements.txt --severity-threshold=high --skip-unresolved
122-
rm -f snyk-requirements.txt
120+
uv export --all-extras --no-hashes > requirements.txt
121+
snyk test --file=requirements.txt --severity-threshold=high --skip-unresolved
122+
rm -f requirements.txt
123123
```
124124

125125
## 🧪 Testing

requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,7 @@ typing-extensions==4.14.1
215215
# virtualenv
216216
typing-inspection==0.4.2
217217
# via pydantic
218-
urllib3==1.26.20 ; python_full_version < '3.10' or platform_python_implementation == 'PyPy'
219-
# via
220-
# requests
221-
# twine
222-
# vcrpy
223-
urllib3==2.5.0 ; python_full_version >= '3.10' and platform_python_implementation != 'PyPy'
218+
urllib3==1.26.20
224219
# via
225220
# requests
226221
# twine

snyk-requirements.txt

Lines changed: 0 additions & 237 deletions
This file was deleted.

0 commit comments

Comments
 (0)