Skip to content

Commit

Permalink
Minor fix to the disable-cache flag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlamont committed Jan 26, 2025
1 parent 75ea62c commit 59ea812
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ repos:
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.23.1
rev: v8.23.2
hooks:
- id: gitleaks
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.44.0
hooks:
- id: markdownlint
args: [--fix]
Expand All @@ -53,7 +53,7 @@ repos:
# --write-changes (Don't use this to stop typos making auto-corrections)
]
- repo: https://github.com/owenlamont/uv-secure
rev: 0.6.0
rev: 0.7.0
hooks:
- id: uv-secure
- repo: https://github.com/adrienverge/yamllint.git
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ uv-secure can be run as a pre-commit hook by adding this configuration to your

```yaml
- repo: https://github.com/owenlamont/uv-secure
rev: 0.7.0
rev: 0.7.1
hooks:
- id: uv-secure
```
Expand All @@ -227,7 +227,7 @@ Or manually check the latest release and update the _rev_ value accordingly.

Below are some ideas (in no particular order) I have for improving uv-secure:

- Add package metadata checks, i.e. age of most recent release threshold
- Add package metadata checks, e.g. age of most recent release threshold
- Package for conda on conda-forge
- Add rate limiting on how hard the PyPi json API is hit to query package
vulnerabilities (this hasn't been a problem yet, but I suspect may be for uv.lock
Expand Down
2 changes: 1 addition & 1 deletion src/uv_secure/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.0"
__version__ = "0.7.1"
2 changes: 1 addition & 1 deletion src/uv_secure/dependency_checker/dependency_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async def check_lock_files(
)
return RunStatus.RUNTIME_ERROR

if any((aliases, desc, ignore)):
if any((aliases, desc, ignore, disable_cache)):
cli_config = config_cli_arg_factory(aliases, desc, disable_cache, ignore)
lock_to_config_map = {
lock_file: override_config(config, cli_config)
Expand Down

0 comments on commit 59ea812

Please sign in to comment.