Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend formatting options to listen subcommand #539

Merged
merged 10 commits into from
Sep 9, 2024
Merged

Extend formatting options to listen subcommand #539

merged 10 commits into from
Sep 9, 2024

Commits on Sep 9, 2024

  1. Extend formatting options to listen subcommand

    Listen streams a mix of WorkerEvent, ProgressEvent and DataEvent
    instances for anything that the server is doing. This extends the type
    handling in the format to each of these types to display the relevant
    level of information for each.
    
    Informational messages are changed to be printed to stderr so that the
    main stdout output can be piped to an external application (eg jq for
    json mode).
    tpoliaw committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    0670931 View commit details
    Browse the repository at this point in the history
  2. Fix ruff complaints

    tpoliaw committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    d971244 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    793e9fd View commit details
    Browse the repository at this point in the history
  4. Fix line length linting

    tpoliaw committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    8c3d50f View commit details
    Browse the repository at this point in the history
  5. Up format coverage

    tpoliaw committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    7199874 View commit details
    Browse the repository at this point in the history
  6. Try to handle enum format changes between 3.10 and 3.11+

    f'{Foo.A}' uses str.__format__ in 3.10 but enum.__format__ in 3.11+.
    Use the name attribute to work with the string directly to ensure the
    same behaviour in both environments.
    tpoliaw committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    bec5d69 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8ce3ab2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0192ef0 View commit details
    Browse the repository at this point in the history
  9. Remove trailing spaces from fmt_dict output

    And cover the missing two lines to get to coverage threshold
    tpoliaw committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b2d12b6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d5f993d View commit details
    Browse the repository at this point in the history