Skip to content

[Feature request] Support formatting options as modulesย #16

Open
@marmistrz

Description

@marmistrz

I've seen a code which mixes .gt. and > - awful!
Thought about contributing this... but stumbled across the longish __init__.py.

It's very difficult to find out where such a thing should be added. What I thought about was: plugins.

If there were a directory plugins, then adding a new formatting option would be as simple as:

  1. Write the needed code in plugins/mynewplugin.py, matching a predefined interface (inheriting an ABC [1] ?)
  2. Register that in __init__.py, possibly binding that to command line options (there may be dependencies between plugins)

For example, replacing .gt. with > could be as simple as a find-and-replace. This would make the code much clearer and much easier to contribute to.

[1] https://pymotw.com/3/abc/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement to existing feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions