Skip to content

Conversation

@signekb
Copy link
Member

@signekb signekb commented May 14, 2025

Description

This PR adds vulture to our dev dependencies and a just recipe that uses vulture to check for unused code in the src/ and tests/ directories.

The check-unused recipe is also added to run-all.

I thought it made sense to the check for unused code add it as a just recipe instead of e.g., a workflow, but let me know if you agree or not 😁

Closes #1223

This PR needs an in-depth review.

Checklist

  • Ran just run-all

@signekb signekb moved this from Todo to In Review in Iteration planning May 14, 2025
@signekb signekb requested a review from lwjohnst86 May 14, 2025 08:58
@signekb signekb changed the title build: :heavy-plus-sign: add vulture to dev with just recipe build: ➕ add vulture to dev with just recipe May 14, 2025
@signekb signekb changed the title build: ➕ add vulture to dev with just recipe build: ➕ add vulture to dev with just recipe to check for unused code May 14, 2025
@signekb
Copy link
Member Author

signekb commented May 14, 2025

When this has been reviewed and merged, I’ll add it to template-python-project as well 👌

Copy link
Member

@lwjohnst86 lwjohnst86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! You can add it to the workflow in .github repo easily because the workflow uses the just recipe.

@lwjohnst86 lwjohnst86 merged commit 190ed93 into main May 14, 2025
5 checks passed
@lwjohnst86 lwjohnst86 deleted the build/add-vulture-with-justfile-recipe branch May 14, 2025 09:35
@github-project-automation github-project-automation bot moved this from In Review to Done in Iteration planning May 14, 2025
lwjohnst86 pushed a commit to seedcase-project/.github that referenced this pull request May 14, 2025
## Description

This PR adds the `just check-unused` recipe to the reusable build
workflow.

As noted here:
seedcase-project/seedcase-sprout#1330 (review)

<!-- Please delete as appropriate: -->
This PR needs a quick/an in-depth review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Include workflow/build for checking unused code

3 participants