First, and one of the most recent I've read, was Eli Brown's Cinnamon and Gunpowder. I hope she read it because it was a lot of fun for sure and it has a female pirate captain to boot.
Other pirate books in my collection include:
And then I have at least a pair of pirate adjacent books. The pirates or defeating the pirates isn't the main story but they have unforgettable pirates in them nonetheless.
Have I missed any good pirate books? Let me know if I have so I can add them to my list asap!