Skip to content

Dynamic contracts #296

Description

@seddonym

Import Linter's config file format is not expressive enough for all use cases. For example, users might want to configure contracts based on the contents of the filesystem, rather than listing items explicitly.

A powerful feature would be to make it possible to run Import Linter in a more dynamic way. One way to achieve this would be to provide a Python API that allows passing in of contracts and configuration at runtime, rather than by reading from a file. That would allow users to write wrapper scripts.

Another approach would be to provide a hook mechanism for people to generate the contracts, but still use the lint-imports CLI entry point.

Another: allow passing in config via stdin.

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