I’ve ridden over a few snakes in my time as they are sunning on trials
Please avoid this if at all possible. The snake is not likely to survive being run over by a bicycle. It will break their spine and some ribs.
I understand if you're going too fast to stop and the snake is stretched across the entire trail. But if you can avoid it at all, please do.