How To Pursue Holiness But Not Become Self-Righteous?

How does the believer pursue holiness and yet not become self-righteous? How do we combat self-righteousness and pride? How do you find balance in pursuing righteousness and holiness and not become self-righteous?