-
Notifications
You must be signed in to change notification settings - Fork 106
Fix issue #162 add different regex pattern to search for meta tags #179
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
Conversation
Changes: - Add a second regex pattern with different ordering in meta tags - Test that redirection occurs when dtags are differently ordered
Remove unnecessary comments and repeated code.
For issue scrapy#162 Add different regex pattern to search for meta tags
Codecov Report
@@ Coverage Diff @@
## master #179 +/- ##
=======================================
Coverage 95.68% 95.68%
=======================================
Files 7 7
Lines 463 464 +1
Branches 88 89 +1
=======================================
+ Hits 443 444 +1
Misses 10 10
Partials 10 10
|
So the new pattern has the same flexibility with the original regex pattern
|
Can you run black on the code? It seems even something in the main branch fails the black check now, we probably need to freeze the version of black that we use. |
|
I ran it with tox and this is the result: angeliki@angeliki-B550M-DS3H:~/lab/library/w3lib$ tox -e black Oh no! 💥 💔 💥 |
|
Instead of using tox, which just checks the files, if you run |
|
I ran black conftest.py setup.py tests w3lib but it only changed tests/test_html.py and not the other two. So tox -e black still fails. |
In test_html the reformat was done by black
|
You were probably using an older black. I have run the latest black, and frozen black in |
|
Addressed. Sorry for the unrelated noise, I was not very careful when I added those static checks 🤦 |
Gallaecio
left a comment
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.
Thanks!
|
No problem! Thank you, too. |
|
Thanks @AngelikiBoura! |
Changes: