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

Allow dicts and lists in rule options #456

Open
jvllmr opened this issue May 1, 2024 · 0 comments
Open

Allow dicts and lists in rule options #456

jvllmr opened this issue May 1, 2024 · 0 comments

Comments

@jvllmr
Copy link
Contributor

jvllmr commented May 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant