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

Is there a way to exclude two patterns for one glob? #46

Open
YPCrumble opened this issue Dec 21, 2021 · 0 comments
Open

Is there a way to exclude two patterns for one glob? #46

YPCrumble opened this issue Dec 21, 2021 · 0 comments

Comments

@YPCrumble
Copy link

Here's my not-grep.toml:

# The "include" checker will error unless the specified value is include.
[include]
# "src/**/*.py" = "__all__"

# The "exclude" checker will error if the specified value is include.
[exclude]
"**/*.py" = "super-with-arguments"
"**/*.py" = "redefined-outer-name"

☝️ this gives me a "duplicate keys" error...

# The "include" checker will error unless the specified value is include.
[include]
# "src/**/*.py" = "__all__"

# The "exclude" checker will error if the specified value is include.
[exclude]
"**/*.py" = [
    "super-with-arguments",
    "redefined-outer-name"
]

☝️ and this gives me an error that not-grep is looking for a string, not an array.

I'd be happy to help if the feature needs building, would love to hear what you think the best solution might be. I suspect the second version?

Thanks again for building this CI tool!

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