Skip to content

Implement --config for various commands - #2041

Open
victorlin wants to merge 10 commits into
victorlin/refine-configfrom
victorlin/ancestral-config
Open

Implement --config for various commands#2041
victorlin wants to merge 10 commits into
victorlin/refine-configfrom
victorlin/ancestral-config

Conversation

@victorlin

@victorlin victorlin commented Aug 17, 2026

Copy link
Copy Markdown
Member

Description of proposed changes

Adds the --config option to align, ancestral, mask, traits, translate, and tree using patterns from #2040.

Docs preview: https://nextstrain--2041.org.readthedocs.build/projects/augur/en/2041/usage/cli/ancestral.html#configuration

Related issue(s)

Closes #1987

Checklist

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs
  • PR nextstrain.org for schema routes

@victorlin victorlin self-assigned this Aug 17, 2026
@victorlin victorlin mentioned this pull request Aug 17, 2026
7 tasks
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.44%. Comparing base (03c4e8d) to head (471f841).

Additional details and impacted files
@@                     Coverage Diff                     @@
##           victorlin/refine-config    #2041      +/-   ##
===========================================================
+ Coverage                    73.42%   73.44%   +0.01%     
===========================================================
  Files                           86       86              
  Lines                        10895    10902       +7     
  Branches                      2129     2129              
===========================================================
+ Hits                          8000     8007       +7     
  Misses                        2511     2511              
  Partials                       384      384              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@victorlin
victorlin force-pushed the victorlin/ancestral-config branch from 84a4cf1 to cf04a1a Compare August 18, 2026 00:24
@jameshadfield jameshadfield mentioned this pull request Aug 18, 2026
5 tasks
@victorlin
victorlin force-pushed the victorlin/ancestral-config branch from cf04a1a to 83f7695 Compare August 28, 2026 23:19
@victorlin
victorlin force-pushed the victorlin/ancestral-config branch from 83f7695 to 3ae0ba4 Compare September 1, 2026 23:27
@victorlin victorlin changed the title ancestral: Implement --config Implement --config for various commands Sep 1, 2026
Adds the --config option to augur ancestral using patterns from augur
refine's --config option.

Updated help text to reference both CLI and YAML syntax, now that both
are valid options.

Added code to handle enums in the schema generating script, since enums
are used in ancestral and not refine.
Change the default from False to implicit None, since the option should
take a file path not boolean.
The default is already rendered in both CLI help text and docs.
Adds the --config option to augur align using patterns from augur
refine's --config option.
Adds the --config option to augur mask using patterns from augur
refine's --config option.
Adds the --config option to augur tree using patterns from augur
refine's --config option.

Updated help text to reference both CLI and YAML syntax, now that both
are valid options.
Adds the --config option to augur translate using patterns from augur
refine's --config option.

Updated help text to reference both CLI and YAML syntax, now that both
are valid options.
This keeps the test focused on command-specific functionality rather
than parser specifics which change over time.
Adds the --config option to augur traits using patterns from augur
refine's --config option.
@victorlin
victorlin force-pushed the victorlin/ancestral-config branch from 3ae0ba4 to 471f841 Compare September 2, 2026 00:05
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.

Config based Augur commands

1 participant