“My brothers, show no partiality as you hold the faith in our Lord Jesus Christ, the Lord of glory.” (James 2:1)
Notice what he says. Show no partiality as you hold the faith. It is impossible to hold on to the faith with your hands while using them to push away people you dislike.
James is telling us that there are implications to having real faith. Or, as is said, faith that saves is never alone (v. 14). It is attached to other things. It’s like the white rag that is in a clown’s pocket that you pull on and find there are all these colored rags tied together. Faith is strung to things like love and kindness and holiness and obedience and a host of issues that are addressed in this letter. You tug on it, and it doesn’t come out by itself. And here specifically, real faith is attached to how you treat others.