Skip to content

Commit

Permalink
chore: Prepare for renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 22, 2025
1 parent cb7dd0c commit eaa8d95
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 74 deletions.
22 changes: 9 additions & 13 deletions .github/actions/install-tools/action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Install tools
description: Install tools for Python projects

inputs:
constraints:
default: "${{ github.workspace }}/requirements/requirements-ci.txt"
description: "Path to pip constraints file"
required: true
os:
default: "ubuntu-latest"
description: "Operating system"
required: true
inputs: {}

env:
# renovate: datasource=pypi depName=nox
NOX_VERSION: 2024.10.9
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.5.21

runs:
using: "composite"
Expand All @@ -19,12 +17,10 @@ runs:
# https://github.com/davidism/gha-update/issues/6
uses: astral-sh/setup-uv@180f8b44399608a850e1db031fa65c77746566d3 # v5.0.1
with:
version: "0.5.x"
version: ${{ env.UV_VERSION }}

- name: Install Nox
shell: bash
env:
UV_CONSTRAINT: "${{ inputs.constraints }}"
run: |
uv tool install nox
uv tool install --with nox=={{ env.NOX_VERSION }} nox
nox --version
24 changes: 0 additions & 24 deletions .github/dependabot.yml

This file was deleted.

24 changes: 18 additions & 6 deletions .github/workflows/api-changes.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: API Changes
name: API Changes 🤝

on:
pull_request:
Expand All @@ -12,6 +12,15 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
FORCE_COLOR: 1
# renovate: datasource=pypi depName=griffe
GRIFFE_VERSION: 1.5.5
# renovate: datasource=pypi depName=nox
NOX_VERSION: 2024.10.9
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.5.21

permissions: # added using https://github.com/step-security/secure-repo
contents: read

Expand All @@ -33,13 +42,16 @@ jobs:
with:
python-version: 3.x

- name: Install uv
uses: astral-sh/setup-uv@180f8b44399608a850e1db031fa65c77746566d3 # v5.0.1
with:
version: ${{ env.UV_VERSION }}

- name: Install tools
env:
PIP_CONSTRAINT: ${{ github.workspace }}/requirements/requirements-ci.txt
run: |
python -Im pip install -U pip
pipx install griffe nox uv
pipx list
uv tool install --with nox==${{ env.NOX_VERSION }} nox
uv tool install --with griffe==${{ env.GRIFFE_VERSION }} griffe
uv tool list
- name: Set REF
id: set-ref
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
branches: ["**"]

env:
UV_VERSION: ">=0.5.19"
FORCE_COLOR: 1
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.5.21
# renovate: datasource=pypi depName=zizmor
ZIZMOR_VERSION: 1.2.1

jobs:
Expand Down
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ repos:
name: pip-compile Lowest Direct
files: ^pyproject\.toml$
args: ["pyproject.toml", "--universal", "--resolution=lowest-direct", "-o=requirements/requirements-lowest-direct.txt"]
- id: pip-compile
name: pip-compile CI Dependencies
files: ^requirements/requirements-ci\.in$
args: ["requirements/requirements-ci.in", "--universal", "-o=requirements/requirements-ci.txt"]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
Expand Down
2 changes: 0 additions & 2 deletions requirements/requirements-ci.in

This file was deleted.

24 changes: 0 additions & 24 deletions requirements/requirements-ci.txt

This file was deleted.

0 comments on commit eaa8d95

Please sign in to comment.