Skip to content

Commit 9bac3da

Browse files
committed
ci: update audit command to be run with uv
Signed-off-by: Adria Montoto <75563346+adriamontoto@users.noreply.github.com>
1 parent 08f79fd commit 9bac3da

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ build: # It builds the project
132132
audit: # It audits dependencies and source code
133133
@echo -e "\n⌛ Running security audit...\n"
134134

135-
@$(PYTHON_BIN) -m pip_audit --progress-spinner off
135+
@$(UV_BIN) audit
136136

137137
@echo -e "\n✅ Security audit completed correctly.\n"
138138

@@ -152,16 +152,16 @@ clean: # It cleans up the project, removing the virtual environment and some fil
152152

153153
$(call quiet, $(PYTHON_BIN) -m pre_commit clean)
154154
$(call quiet, $(PYTHON_BIN) -m pre_commit uninstall --hook-type pre-commit --hook-type commit-msg)
155-
$(call quiet, rm --force --recursive $(PYTHON_VIRTUAL_ENVIRONMENT))
156-
$(call quiet, rm --force --recursive `find . -type f -name '*.py[co]'`)
157-
$(call quiet, rm --force --recursive `find . -name __pycache__`)
158-
$(call quiet, rm --force --recursive `find . -name .ruff_cache`)
159-
$(call quiet, rm --force --recursive `find . -name .mypy_cache`)
160-
$(call quiet, rm --force --recursive `find . -name .pytest_cache`)
161-
$(call quiet, rm --force --recursive .coverage)
162-
$(call quiet, rm --force --recursive .coverage.*)
163-
$(call quiet, rm --force --recursive coverage.xml)
164-
$(call quiet, rm --force --recursive htmlcov)
155+
$(call quiet, rm -fr $(PYTHON_VIRTUAL_ENVIRONMENT))
156+
$(call quiet, rm -fr `find . -type f -name '*.py[co]'`)
157+
$(call quiet, rm -fr `find . -name __pycache__`)
158+
$(call quiet, rm -fr `find . -name .ruff_cache`)
159+
$(call quiet, rm -fr `find . -name .mypy_cache`)
160+
$(call quiet, rm -fr `find . -name .pytest_cache`)
161+
$(call quiet, rm -fr .coverage)
162+
$(call quiet, rm -fr .coverage.*)
163+
$(call quiet, rm -fr coverage.xml)
164+
$(call quiet, rm -fr htmlcov)
165165

166166
@echo -e "\n✅ Run 'deactivate' to deactivate the virtual environment.\n"
167167

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Issues = 'https://github.com/adriamontoto/value-object-pattern/issues'
5050

5151

5252
[dependency-groups]
53-
audit = ['pip-audit>=2.9.0']
5453
coverage = ['coverage[toml]>=7.0.0', 'smokeshow>=0.5.0']
5554
develop = ['pre-commit>=3.0.0']
5655
format = ['ruff>=0.11.10']
@@ -69,7 +68,6 @@ test = [
6968
]
7069
types = ['types-python-dateutil>=2.9.0.20241206']
7170
all = [
72-
{ include-group = 'audit' },
7371
{ include-group = 'coverage' },
7472
{ include-group = 'develop' },
7573
{ include-group = 'format' },

0 commit comments

Comments
 (0)