-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Tests to check if sorted by rarity, if correct regex format,... #109
Conversation
Can you write "fixes #106" that way github will auto-close the issue when this is merged? edit your original description! |
tests fail! |
Can you add black and isort check? |
I am not quite sure how to do that. We have to add them to the workflow file right? |
I have reorder the database as some some API keys had rarity of Here is how regexes are sorted now and what criteria I used: 1 (matching to specific words and characters)
0.7 (very restricted regex, can still cause false positives)
0.5 (mostly matching to specific characters)
0.3 (pretty broad, only a few specific characters)
0.2 (very broad, no specific characters, only length limits)
0 (madness)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I am waiting for black and isort check 😄
https://github.com/olance/isort-action For the actions :) |
test_regex_identifier.py
(this requires at least one test with a full regex pattern name because previously a lot of tests asserted just one or two words to match to the name)regex.json
(fixes Add black + isort check #106)^(regex)$
format and fail if there are any in-between boundaries (fixes Add black + isort check #106)