Skip to content

chore: remove unused code - #1122

Merged
aliciaaevans merged 11 commits into
bioconda:masterfrom
paperbenni:remove-dead-code
Jun 29, 2026
Merged

chore: remove unused code#1122
aliciaaevans merged 11 commits into
bioconda:masterfrom
paperbenni:remove-dead-code

Conversation

@paperbenni

@paperbenni paperbenni commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Remove unused code

I used vulture to build an initial list, then excluded false-positives (auto-discovered code etc) as well as anything imported by external scripts in bioconda-recipes.

Lots of html templates were unused since 2019, these are removed as well

…emoval

Remove 12 template files from bioconda_utils/templates/ that are no
longer loaded by any Python code:

- bot_*.html, css/, merge_button.svg, artifacts.md: orphaned when the
  bot web UI module (bioconda_utils/bot/) was removed in cab3df5 (May 2023).
  No code references these files anymore.

- lint_failure.md, lint_success.md: orphaned when the GitHub comment
  push feature was removed in 950a913 (May 2019), part of the linter
  rewrite in 9d23688. No code references these files anymore.

The three autobump templates (autobump_bump_version_pr.md,
autobump_update_pinning_pr.md, autobump_pr.md) are left in place as
they are still loaded by autobump.py.
@paperbenni
paperbenni marked this pull request as ready for review June 25, 2026 15:36

@aliciaaevans aliciaaevans left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, some of this hasn't been needed in years.

I still want to take a look at githubhandler.py tomorrow (ran out of time), but here are my comments so far. I think I found a couple more things that can be removed, unless I'm missing some place they are used.

Comment thread bioconda_utils/autobump.py Outdated
Comment thread test/test_utils.py
Comment thread bioconda_utils/githandler.py
Comment thread bioconda_utils/cli.py Outdated
Comment thread bioconda_utils/cli.py
Comment thread bioconda_utils/autobump.py Outdated

@aliciaaevans aliciaaevans left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think that one for loop in test_utils.py is the only thing concerning to me as it's not clear why it was removed.

paperbenni and others added 5 commits June 29, 2026 11:08
Co-authored-by: Alicia A. Evans <108547992+aliciaaevans@users.noreply.github.com>
got made redundant by other removals

@aliciaaevans aliciaaevans left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. I think the osx tests timed out, so rerunning.

@mergify

mergify Bot commented Jun 29, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@mergify

mergify Bot commented Jun 29, 2026

Copy link
Copy Markdown

queue

⚠️ Configuration not compatible with a branch protection setting

Details

The branch protection setting Require branches to be up to date before merging is not compatible with draft PR checks. To keep this branch protection enabled, update your Mergify configuration to enable in-place checks: set merge_queue.max_parallel_checks: 1, set every queue rule batch_size: 1, and avoid two-step CI (make merge_conditions identical to queue_conditions). Otherwise, disable this branch protection.

@aliciaaevans
aliciaaevans merged commit d0dbff3 into bioconda:master Jun 29, 2026
19 of 20 checks passed
@paperbenni
paperbenni deleted the remove-dead-code branch June 29, 2026 22:17
@bgruening

Copy link
Copy Markdown
Member

Wonderful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants