Sounds like a snake that is going into shed. They often get pissy. Not just hogs, but many other species as well.

Do you have a hide on the warm area for this snake? Please put one in if not. Reptile Basics sell inexpensive black plastic low-height hides that work well. Of course, a hoggie will gladly just burrow into substrate if it is deep enough to cover the snake with at least an inch.