Skip to content

Extending the popup section of the readme #34

@jeffpollock9

Description

@jeffpollock9

Hi, firstly thanks for a really useful package!

I am struggling to understand how to add new pytest flags to my init.el since the switch to transient, I tried copying the example in the readme, namely:

  (use-package python-pytest
    :config
    ;; just an extra `-y' after the `-x' suffix
    (transient-append-suffix
      'python-pytest-dispatch
      "-x"
      ("-y" "The Y" "-y"))
    ;; group with `-z' after second from the last group,
    ;; that is before `Run tests'
    (transient-append-suffix
      'python-pytest-dispatch
      '(-2)
      ["My Z"
       ("-z" "The Z" "-z")]))

but this errors with:

Error (use-package): python-pytest/:config: Invalid function: "-y"

if you have a spare minute I think it would be great to clarify how the extra switches work.

Please let me know if there is anything I can do to help - although my elisp is awful.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions