diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6c5049e..23b2203 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,3 +8,5 @@ updates: github-actions: patterns: - "*" + cooldown: + default-days: 7 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc2ff41..12c2a22 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,8 +3,6 @@ on: schedule: - cron: "0 */4 * * *" workflow_dispatch: - repository_dispatch: - types: [pypi_release] jobs: build: @@ -13,9 +11,6 @@ jobs: permissions: contents: write steps: - - if: ${{ startsWith(github.event_name, 'repository_dispatch') }} - run: sleep 30 - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: persist-credentials: true # needed to push commits below @@ -41,10 +36,10 @@ jobs: UNPUSHED_COMMITS=$(git log origin/main..HEAD) if [ -z "$UNPUSHED_COMMITS" ]; then echo "No unpushed commits found." - echo "changes_exist=false" >> $GITHUB_ENV + echo "changes_exist=false" >> "$GITHUB_ENV" else echo "Unpushed commits found." - echo "changes_exist=true" >> $GITHUB_ENV + echo "changes_exist=true" >> "$GITHUB_ENV" fi - name: push changes if they exist @@ -56,8 +51,8 @@ jobs: - name: create release on new tag if new changes exist if: env.changes_exist == 'true' run: | - TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) - echo $TAG_NAME + TAG_NAME=$(git describe --tags "$(git rev-list --tags --max-count=1)") + echo "$TAG_NAME" gh release create "$TAG_NAME" \ --title "$TAG_NAME" \ --notes "See: https://github.com/astral-sh/uv/releases/tag/$TAG_NAME" \ diff --git a/README.md b/README.md index 51239a5..bdd1c4f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ To ensure the lockfile is up-to-date: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: # Update the uv lockfile - id: uv-lock @@ -31,7 +31,7 @@ To autoexport `uv.lock` to `requirements.txt`: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: - id: uv-export ``` @@ -43,7 +43,7 @@ To export to an alternative file, modify the `args`: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: - id: uv-export args: ["--frozen", "--output-file=requirements-custom.txt", "--quiet"] @@ -54,7 +54,7 @@ To compile your requirements via pre-commit, add the following to your `.pre-com ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: # Run the pip compile - id: pip-compile @@ -66,7 +66,7 @@ To compile alternative files, modify the `args` and `files`: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: # Run the pip compile - id: pip-compile @@ -79,7 +79,7 @@ To run the hook over multiple files at the same time: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: # Run the pip compile - id: pip-compile @@ -96,7 +96,7 @@ To run a hook on a project within a subdirectory (i.e., in a monorepo): ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: # Update the uv lockfile - id: uv-lock @@ -116,7 +116,7 @@ default_install_hook_types: repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: - id: uv-sync ``` @@ -129,7 +129,7 @@ To synchronize all dependencies in a workspace: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: - id: uv-sync args: ["--locked", "--all-packages"] @@ -141,7 +141,7 @@ include it as an additional sync dependency: ```yaml - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.11 + rev: 0.11.21 hooks: - id: uv-sync additional_dependencies: [keyring] diff --git a/pyproject.toml b/pyproject.toml index dbf60bd..c8ca6ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "uv-pre-commit" version = "0.0.0" dependencies = [ - "uv==0.11.11", + "uv==0.11.21", ] [project.optional-dependencies]