Throwaway utility scripts for one-off maintenance tasks.
A simple script to check for updates to conda packages in environment.yml files, since dependabot doesn't support conda dependencies.
Usage:
python3 maintenance-scripts/check_conda_versions.pyQueries conda-forge and bioconda for the latest versions and reports which packages can be updated.
Update process:
- Check for updates: Run the script to see which packages have newer versions available
- Update the versions: Edit the
environment.ymlfiles with the new versions:preprocessing/nextclade/environment.ymlingest/environment.ymlena-submission/environment.yml
- Keep ruff in sync: If updating ruff in
ena-submission/environment.yml, also update it in.pre-commit-config.yamlto match - Pin all dependencies: All dependencies should use exact version pinning (e.g.,
=1.2.3) rather than minimum version constraints (e.g.,>=1.2.3) to ensure reproducible builds - Run pre-commit: After updating ruff or other linting tools, run pre-commit on all files to catch any new linting issues:
pre-commit run --all-files