Retirement tax questions

Thanks.  So, since I'll be making all my HSA contributions before July and won't contribute more than what the IRS allows, Medicare won't penalize it based on the 6-month lookback.  (I'm single, so spousal rules aren't involved.)