diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml index 1ae3de6bd9..96b74d1319 100644 --- a/.github/workflows/test-install.yml +++ b/.github/workflows/test-install.yml @@ -45,9 +45,6 @@ jobs: - name: Install utils/ dependencies run: uv pip install --system -r utils/requirements.txt - - name: Validate uv lockfile - run: uv lock --check - - name: Validate conda environment file run: python ./utils/dependency_management.py validate-environment-yml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb2019ac26..d279593d0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autofix_prs: true autoupdate_commit_msg: 'Devops: Update pre-commit dependencies' autoupdate_schedule: quarterly - skip: [mypy, check-uv-lock, generate-conda-environment, validate-conda-environment, verdi-autodocs] + skip: [mypy, generate-conda-environment, validate-conda-environment, verdi-autodocs] repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -56,6 +56,12 @@ repos: environment.yml| )$ +- repo: https://github.com/astral-sh/uv-pre-commit + rev: 0.5.16 + hooks: + # Update the uv lockfile + - id: uv-lock + - repo: local hooks: @@ -187,18 +193,6 @@ repos: src/aiida/workflows/arithmetic/multiply_add.py| )$ - - id: check-uv-lock - name: Check uv lockfile up to date - # NOTE: This will not automatically update the lockfile - entry: uv lock --check - language: system - pass_filenames: false - files: >- - (?x)^( - pyproject.toml| - uv.lock| - )$ - - id: generate-conda-environment name: Update conda environment file entry: python ./utils/dependency_management.py generate-environment-yml