If you file bankruptcy, it does not affect your spouse’s credit. There are advantages in many cases too, a married couple filing together but if you choose not to, it does not effect your spouse’s credit or credit rating.