This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
To use this hook, copy this file to REPOSITORY_NAME/.git/hooks/pre-commit | |
This pre-commit hook relies mainly on the diff_cover package to check for style | |
violations only in the lines of code you are about to commit. It's been pretty | |
awesome for me so far and it's definitely useful when working on legacy code! | |
In use, it might not be much different than git diff HEAD~1 | flake8 --diff | |
but I prefer the readability of the diff-quality output. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
* requires usaddress https://github.com/datamade/usaddress | |
* check out the website! https://parserator.datamade.us/usaddress | |
The usaddress package is pretty great for normalizing inconsistent address data, | |
especially when if you have a lot to process and can't rely on using a geocoding api. | |
The results are really granular, probably moreso than you'll need, and definitely | |
more than most CRM systems if integrating these addresses is your goal. | |
This is just a simple wrapper around the usaddress.tag() function that I feel will |