uv sync locked in workflows

This commit is contained in:
Sina Atalay
2025-12-09 17:20:49 +03:00
parent 65abc2c53e
commit a32561bca4
6 changed files with 13 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ jobs:
uses: taiki-e/install-action@just
- name: Install the project
run: just sync
run: just sync-locked
- name: Create executable
run: just create-executable

View File

@@ -35,7 +35,7 @@ jobs:
uses: taiki-e/install-action@just
- name: Install the project
run: just sync
run: just sync-locked
- name: Build docs
run: just build-docs

View File

@@ -33,7 +33,7 @@ jobs:
uses: taiki-e/install-action@just
- name: Install the project
run: just sync
run: just sync-locked
- name: Test
run: just test-coverage

View File

@@ -23,7 +23,7 @@ jobs:
uses: taiki-e/install-action@just
- name: Install the project
run: just sync
run: just sync-locked
- name: Set Git credentials
run: |

View File

@@ -2,6 +2,9 @@
sync:
uv sync --all-extras --all-groups
sync-locked:
uv sync --locked --all-extras --all-groups
format:
uv run --locked black src tests
uv run --locked ruff check --fix src tests

View File

@@ -27,14 +27,6 @@ requires = ["uv_build>=0.9.5,<0.10.0"] # Packages needed to build RenderCV
# See https://peps.python.org/pep-0517/
build-backend = "uv_build" # Build-backend object for building RenderCV
[tool.hatch.build.targets.sdist]
# In the sdist, what do we want to exclude? GIF files are large.
exclude = ["*.gif"]
[tool.hatch.build.targets.wheel]
# In the wheel, what do we want to include and exclude?
packages = ["rendercv"]
[project]
# Metadata about RenderCV.
name = 'rendercv'
@@ -123,6 +115,12 @@ docs = [
# RenderCV uses various tools to check code quality, format code, build docs, and package the project.
# Their configurations are specified below so contributors and IDEs can pick them up automatically.
[tool.uv]
default-groups = "all"
[tool.uv.pip]
all-extras = true
[tool.ruff]
line-length = 88