Skip to content

diff_results.py --audit rejects a folder name without saying what the audit is called #1150

Closed

Description

@yakew7

Where: scripts/diff_results.py main() (--audit).

Current gap: Audits are named by the manifest (german_credit_lending) but people type the folder name. The error lists nothing to choose from, unlike load_audit(), which suggests close matches.

Repro:

$ python3 scripts/diff_results.py --audit "German Credit Lending"
error: unknown audit(s): German Credit Lending

Suggested approach: Print the known audit names and a difflib.get_close_matches suggestion, normalizing case, spaces and underscores.

Done when: the error names the audits that exist and suggests the right one, with a test.

Activity

  1. dxnnystyles commented on Oct 24, 2026

    @dxnnystyles
    Contributor

    update: looks like #1158 already handled this before I claimed it, so I won't duplicate the work. thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions