Don't have a bucket of flour where you keep adding more flour before it gets empty. You'll eventually end up with a weevil infestation. Instead use it all up, clean the container, and start fresh.
Discussion
Or put your flour in a freezer for 3 days when you buy it and never have weevils
I once had a weevil infestation of large weevils in a sack of wheat berries. The adjacent sack didn't appear to have any, but to be safe I froze it (in batches since it didn't fit)
Sage advice. Concur with freezer for store bought flour. Grinding your own wheat berries…….. God status sourdough.