Perfect obedience is God's requirement. That's what the Bible teaches. Look at James 2:10, "For whoever shall keep the whole law, and yet stumble in one point, he is guilty of all." Breaking God's law of commandment only one time means we are guilty of all.
You may say, "If breaking one commandment means I am guilty of all, then there is no hope for me." Wait! There's good news. Jesus Christ is your perfect obedience. He was without sin. He is the only man without sin. When you believe on the Lord Jesus Christ, the righteousness of Christ is put on your account. The only way that you can be righteous before God is in Christ alone (2 Corinthians 5:21).
Being self-righteous can never please God. It is like filthy rags before God (Isaiah 64:6). People who think they can please God being self-righteous see no need to receive the righteousness of Christ. They may consider themselves to be good, but we will never be good enough. Righteousness is the perfect obedience of Christ.
Christ is perfect obedience, both active obedience and passive obedience. In active obedience, Christ fulfilled the law of God in all things. He came not to destroy the law but to fulfill it (Matthew 5:17). He died on the cross for our sins in passive obedience to God the Father's will. By faith in Christ, every believer is accounted righteous. You believe unto righteousness in Christ (Romans 10:9-10).