Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support scanning multiple uv.lock files #9

Merged
merged 7 commits into from
Dec 22, 2024
Merged

Conversation

owenlamont
Copy link
Owner

Adding support to pass multiple uv.lock files to uv-scan and updating pre-commit to search for all uv.lock files

Changed uv_lock_path from an option to an argument list and updated pre-commit hooks to pass all uv.lock files.
@owenlamont owenlamont self-assigned this Dec 22, 2024
Copy link

github-actions bot commented Dec 22, 2024

Coverage Report

============================= test session starts ==============================
platform linux -- Python 3.9.20, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/runner/work/uv-secure/uv-secure
configfile: pyproject.toml
plugins: typeguard-4.4.1, httpx-0.35.0, cov-6.0.0, mock-3.14.0, anyio-4.7.0
collected 5 items

tests/uv_secure/test_run.py .....                                        [100%]

---------- coverage: platform linux, python 3.9.20-final-0 -----------
Name                                                     Stmts   Miss  Cover
----------------------------------------------------------------------------
src/uv_secure/__init__.py                                    3      0   100%
src/uv_secure/__version__.py                                 1      0   100%
src/uv_secure/dependency_checker/__init__.py                 2      0   100%
src/uv_secure/dependency_checker/dependency_checker.py      43      2    95%
src/uv_secure/package_info/__init__.py                       3      0   100%
src/uv_secure/package_info/lock_file_parser.py              14      1    93%
src/uv_secure/package_info/vulnerability_downloader.py      35      4    89%
src/uv_secure/run.py                                        24      2    92%
tests/smoke_test.py                                          2      0   100%
tests/uv_secure/conftest.py                                  0      0   100%
tests/uv_secure/test_run.py                                 58      0   100%
----------------------------------------------------------------------------
TOTAL                                                      185      9    95%


============================== 5 passed in 3.49s ===============================

@owenlamont owenlamont merged commit 51c312a into main Dec 22, 2024
6 checks passed
@owenlamont owenlamont deleted the multi_lock_file_support branch December 22, 2024 09:43
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.

1 participant