From 5b4b0d1b63b4c2a8487947aea31d52032de98d37 Mon Sep 17 00:00:00 2001 From: "TEAM 4.0[bot]" Date: Wed, 1 Oct 2025 06:49:43 +0000 Subject: [PATCH 1/2] Update `pre-commit` hooks --- .pre-commit-config.yaml | 2 +- {{ cookiecutter.project_slug }}/.pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06ff557..3a51450 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -81,7 +81,7 @@ repos: # More information can be found in its documentation: # https://docs.astral.sh/ruff/ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.1 + rev: v0.13.2 hooks: - id: ruff-check name: ruff diff --git a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml b/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml index 9c0d161..c3aae41 100644 --- a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml +++ b/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml @@ -84,7 +84,7 @@ repos: # More information can be found in its documentation: # https://docs.astral.sh/ruff/ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.1 + rev: v0.13.2 hooks: - id: ruff-check name: ruff From 5df7a3c1a87202c4ab4a4346568f43efb6744f4a Mon Sep 17 00:00:00 2001 From: Casper Welzel Andersen Date: Wed, 1 Oct 2025 09:52:54 +0200 Subject: [PATCH 2/2] Update pip-audit usage --- .github/utils/requirements.txt | 1 + .github/workflows/ci_tests.yml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/utils/requirements.txt b/.github/utils/requirements.txt index 8a9d291..a548fdf 100644 --- a/.github/utils/requirements.txt +++ b/.github/utils/requirements.txt @@ -1,2 +1,3 @@ cookiecutter~=2.6 flit~=3.12 +pip-tools~=7.5 diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index fc50ea4..80cae59 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -56,8 +56,13 @@ jobs: run: pre-commit run --all-files working-directory: ./oteapi-ci + - name: Prepare for pip-audit + run: pip-compile --output-file=${{ runner.temp }}/requirements.txt --all-extras --allow-unsafe ${{ github.workspace }}/oteapi-ci/pyproject.toml + - name: Run pip-audit uses: pypa/gh-action-pip-audit@v1.1.0 + with: + inputs: ${{ runner.temp }}/requirements.txt - name: Build docs run: mkdocs build --strict @@ -86,7 +91,8 @@ jobs: run: | python -m pip install --upgrade pip pip install -U setuptools wheel - pip install -r requirements.txt -r .github/utils/requirements.txt - name: Run pip-audit uses: pypa/gh-action-pip-audit@v1.1.0 + with: + inputs: ${{ github.workspace }}/requirements.txt ${{ github.workspace }}/.github/utils/requirements.txt