Instagram / Instagram/Fixit

Allow dicts and lists in rule options

Open
#456 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
714
Forks
72
PR merge metrics
No merged PRs in 30d

Description

It would be great if you could use a dict or even lists in rule options.

Let's say I want to enforce aliased imports for specific modules inside my codebase.
I would create a `AliasedImportRule` rule.

If I have multiple aliases I want to enforce, I need multiple rule instances.
It would be easier if I could just pass a mapping of aliases to my rule, especially if I want to distribute that rule in a package for other people to use.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.