Skip to content

chore(deps): update pre-commit hook python-jsonschema/check-jsonschema to v0.33.3 #109

chore(deps): update pre-commit hook python-jsonschema/check-jsonschema to v0.33.3

chore(deps): update pre-commit hook python-jsonschema/check-jsonschema to v0.33.3 #109

Workflow file for this run

# This file is part of the tschm/.config-templates repository
# (https://github.com/tschm/.config-templates).
#
# Workflow: Deptry
# Purpose: This workflow identifies missing and obsolete dependencies in the project.
# It helps maintain a clean dependency tree by detecting unused packages and
# implicit dependencies that should be explicitly declared.
name: "DEPTRY"
# Trigger: This workflow runs on every push and on pull requests to the main branch
on:
push:
pull_request:
# Only run on pull requests targeting the main branch
branches: [ main ]
# Permissions: Only read access to repository contents is needed
permissions:
contents: read
jobs:
check_pyproject:
name: Check pyproject.toml presence
runs-on: ubuntu-latest
outputs:
pyproject_exists: ${{ steps.check_file.outputs.exists }}
steps:
- uses: actions/checkout@v5
- name: Check for pyproject.toml
id: check_file
run: |
if [ -f "pyproject.toml" ]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
deptry_analysis:
name: Run deptry if pyproject.toml exists
needs: check_pyproject
runs-on: ubuntu-latest
if: needs.check_pyproject.outputs.pyproject_exists == 'true'
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run deptry
run: task quality:deptry