In determining which conditions of release will reasonably assure appearance, a committing magistrate or court shall, on the basis of available information, take into account the nature and circumstances of the offense charged, the weight of the evidence against the defendant, the defendant's family ties, employment, financial resources, character and mental condition, the results of any mental health assessment, the length of the defendant's residence in the community, the defendant's record of convictions, the defendant's record of appearance at court proceedings or of flight to avoid prosecution or failure to appear at court proceedings, and the risk that the defendant will flee or pose a danger to any person or to the community.
SDCL 23A-43-4