Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

chore: sync template from tschm/.config-templates@main #76

chore: sync template from tschm/.config-templates@main

chore: sync template from tschm/.config-templates@main #76

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.
#
# Trigger: This workflow runs on every push and on pull requests to main/master
# branches (including from forks)
name: "DEPTRY"
# Permissions: Only read access to repository contents is needed
permissions:
contents: read
on:
push:
pull_request:
branches: [ main, master ]
jobs:
deptry_analysis:
name: Check dependencies with deptry
runs-on: ubuntu-latest
container:
image: ghcr.io/astral-sh/uv:0.9.4-python3.12-trixie
steps:
- uses: actions/checkout@v5
- name: Run deptry
run: |
if [ -f "pyproject.toml" ]; then
uvx deptry src # Run deptry on the src directory
else
echo "pyproject.toml not found, skipping deptry analysis"
fi