how does a righteous person behave

what makes them righteous ?