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

extended warning if globs are used instead of regex to top level #1750

Merged
merged 1 commit into from Jan 2, 2021
Merged

extended warning if globs are used instead of regex to top level #1750

merged 1 commit into from Jan 2, 2021

Conversation

paulhfischer
Copy link
Contributor

extends #1702 (see this comment).

i used the same validator. to distinguish between a hook field and a top-level field i checked if id is present in the dictionary. i think this should be fine, but if you have a better idea just let me know :)

pre_commit/clientlib.py Outdated Show resolved Hide resolved
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile asottile merged commit b2c0fab into pre-commit:master Jan 2, 2021
@paulhfischer paulhfischer deleted the warn_on_globs_instead_of_regex branch January 2, 2021 00:45
This was referenced Mar 8, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants